fix: notification type is success when operation successful

This commit is contained in:
Arman committed 2022-06-14 10:46:56 +02:00
1 parent 5f826600d7
commit 89a3f6bcfe
1 file changed
+2 -2
@@ -48,7 +48,7 @@
message: `The account has been ${
$user.emailVerification ? 'verified' : 'unverified'
}`,
type: $user.emailVerification ? 'success' : 'info'
type: 'success'
});
} catch (error) {
addNotification({
@@ -63,7 +63,7 @@
$user.status = !$user.status;
addNotification({
message: `The account has been ${$user.status ? 'unblocked' : 'blocked'}`,
type: `${$user.status ? 'success' : 'error'}`
type: 'success'
});
} catch (error) {
addNotification({