fix(web): user restore ()

This commit is contained in:
Jason Rasmussen 2025-05-09 17:05:01 -04:00 committed by GitHub
parent 87cdf0ebd9
commit 66400b2e8e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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'));
}