Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Iryna Mariiko authored and Iryna Mariiko committed Dec 5, 2024
1 parent 20b9fe5 commit 37e36d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/NewMovie/NewMovie.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const NewMovie: React.FC<Props> = ({ onAdd }) => {
const [imdbUrl, setImdbUrl] = useState('');
const [imdbId, setImdbId] = useState('');

const disabledButton = !(!!title && !!imgUrl && !!imdbUrl && !!imdbId);
const disabledButton = !(title && imgUrl && imdbUrl && imdbId);
const clearInputs = () => {
setTitle('');
setDescription('');
Expand Down

0 comments on commit 37e36d6

Please sign in to comment.