fix(web): user restore (#18188)

This commit is contained in:
Jason Rasmussen authored and GitHub committed 2025-05-09 21:05:01 +00:00
1 parent 87cdf0ebd9
commit 66400b2e8e
1 file changed
+2 -5
@@ -14,11 +14,8 @@
const handleRestoreUser = async () => {
try {
const { deletedAt } = await restoreUserAdmin({ id: user.id });
if (deletedAt === undefined) {
onClose(true);
}
await restoreUserAdmin({ id: user.id });
onClose(true);
} catch (error) {
handleError(error, $t('errors.unable_to_restore_user'));
}