Skip to content

Commit 3f8327c

Browse files
committed
Fix failed user unban being reported as success.
1 parent d85a0bb commit 3f8327c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ts/components/dialog/BanOrUnbanUserDialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ async function banOrUnBanUserCall(
5656
if (!isChangeApplied) {
5757
window?.log?.warn(`failed to ${banType} user: ${isChangeApplied}`);
5858

59-
banType === 'ban' ? ToastUtils.pushUserBanFailure() : ToastUtils.pushUserUnbanSuccess();
59+
banType === 'ban' ? ToastUtils.pushUserBanFailure() : ToastUtils.pushUserUnbanFailure();
6060
return false;
6161
}
6262
window?.log?.info(`${pubkey.key} user ${banType}ned successfully...`);

0 commit comments

Comments
 (0)