Skip to content

Commit

Permalink
new commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Vovchukkul committed Oct 23, 2023
1 parent 6bbdc94 commit 38eec8f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/NewMovie/NewMovie.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const NewMovie: React.FC<NewMovieProps> = ({ onAdd }) => {
const handleInputChange = (name: string, value: string) => {
setFormData({
...formData,
[name]: value.trim(),
[name]: value,
});
};

Expand Down Expand Up @@ -95,6 +95,7 @@ export const NewMovie: React.FC<NewMovieProps> = ({ onAdd }) => {
label="Imdb ID"
value={formData.imdbId}
onChange={(value) => handleInputChange('imdbId', value)}
required
/>

<div className="field is-grouped">
Expand Down

0 comments on commit 38eec8f

Please sign in to comment.