diff --git a/frontend/src/components/Register/UpdateUserStateForm.tsx b/frontend/src/components/Register/UpdateUserStateForm.tsx index 23444a58..e1e0cd3e 100644 --- a/frontend/src/components/Register/UpdateUserStateForm.tsx +++ b/frontend/src/components/Register/UpdateUserStateForm.tsx @@ -33,7 +33,7 @@ export const UpdateStateForm: React.FC<{ const [values, setValues] = useState(defaultValues); const [errorRequestMessage, setErrorRequestMessage] = useState(''); const [isLoading, setIsLoading] = useState(false); - const { apiPut } = useAuthContext(); + const { apiPut, user } = useAuthContext(); const handleChange = (event: SelectChangeEvent) => { setValues((values: any) => ({ @@ -63,7 +63,16 @@ export const UpdateStateForm: React.FC<{ }; return ( - + { + if (reason !== 'backdropClick' && reason !== 'escapeKeyDown') { + onClose(); + } + }} + maxWidth="xs" + fullWidth + > Update State Information {errorRequestMessage && ( @@ -92,7 +101,11 @@ export const UpdateStateForm: React.FC<{ -