test
This commit is contained in:
parent
102d1c9d9c
commit
3a987cf4be
@ -100,10 +100,8 @@ const AdminUsersPage = () => {
|
|||||||
try {
|
try {
|
||||||
await userApi.deleteUser(userId);
|
await userApi.deleteUser(userId);
|
||||||
|
|
||||||
const currentUserId = getUserId(currentUser);
|
if (String(userId) === String(getUserId(currentUser))) {
|
||||||
|
logout();
|
||||||
if (String(userId) === String(currentUserId)) {
|
|
||||||
await logout();
|
|
||||||
window.location.href = '/login';
|
window.location.href = '/login';
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user