Skip to content

Commit

Permalink
state update
Browse files Browse the repository at this point in the history
  • Loading branch information
ajayadav09 committed Mar 6, 2024
1 parent 3daa6d2 commit 3f46880
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const ImageUploaderWithText = ( { image, imageSetter } ) => {
const { theme } = useContext( ThemeContext );
const [ isUploading, setIsUploading ] = useState( false );
const [ onDragActive, setOnDragActive ] = useState( false );
const [ pngLogoBgTheme, setPngLogoBgTheme ] = useState( 'transparent' );
const [ pngLogoBgTheme, setPngLogoBgTheme ] = useState( '' );

const { updateSiteGenErrorStatus } = useDispatch( nfdOnboardingStore );

Expand Down Expand Up @@ -127,6 +127,7 @@ const ImageUploaderWithText = ( { image, imageSetter } ) => {
};

const removeSelectedImage = () => {
setPngLogoBgTheme( '' );
imageSetter( {
id: 0,
url: '',
Expand Down

0 comments on commit 3f46880

Please sign in to comment.