mirror of
https://github.com/strapi/strapi.git
synced 2025-09-22 14:59:07 +00:00
Unlock app when there is an error when creating a user
Signed-off-by: soupette <cyril@strapi.io>
This commit is contained in:
parent
cc03c09253
commit
12299422fa
@ -67,6 +67,8 @@ const ModalForm = ({ queryName, onToggle }) => {
|
||||
try {
|
||||
await postMutation.mutateAsync(body);
|
||||
} catch (err) {
|
||||
unlockApp();
|
||||
|
||||
if (err?.response?.data.message === 'Email already taken') {
|
||||
setErrors({ email: err.response.data.message });
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user