Skip to content

Commit

Permalink
Fix bug where first input to signup form would get cleared (#79643)
Browse files Browse the repository at this point in the history
  • Loading branch information
noahtallen authored Jul 19, 2023
1 parent d3c9b16 commit f3d0d8d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ const FreeSetup: Step = function FreeSetup( { navigation } ) {
const file = new File( [ base64ImageToBlob( siteLogo ) ], 'site-logo.png' );
setSelectedFile( file );
}
}, [ state ] );
// These are the actual dependencies, not the state object.
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [ state.siteTitle, state.siteDescription, state.siteLogo ] );

const handleSubmit = async ( event: FormEvent ) => {
event.preventDefault();
Expand Down

0 comments on commit f3d0d8d

Please sign in to comment.