From 53cc370727ab9f28a85f954255898062e956668a Mon Sep 17 00:00:00 2001 From: Pavel Mineev Date: Sun, 2 Oct 2022 11:36:40 -0700 Subject: [PATCH] admin: fix block period --- frontend/apps/remark42/app/common/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/apps/remark42/app/common/api.ts b/frontend/apps/remark42/app/common/api.ts index 717e8a69..81b0cab1 100644 --- a/frontend/apps/remark42/app/common/api.ts +++ b/frontend/apps/remark42/app/common/api.ts @@ -114,7 +114,7 @@ export const blockUser = ( block: boolean; site_id: string; user_id: string; -}> => adminFetcher.put(`/user/${id}`, { block: 1, ttl: ttl === 'permanently' ? ttl : undefined }); +}> => adminFetcher.put(`/user/${id}`, { block: 1, ttl: ttl === 'permanently' ? undefined : ttl }); export const unblockUser = ( id: User['id']