aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/reviewDB/index.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/reviewDB/index.tsx')
-rw-r--r--src/plugins/reviewDB/index.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/reviewDB/index.tsx b/src/plugins/reviewDB/index.tsx
index 0dcb7cd..de09ac7 100644
--- a/src/plugins/reviewDB/index.tsx
+++ b/src/plugins/reviewDB/index.tsx
@@ -79,8 +79,8 @@ export default definePlugin({
addContextMenuPatch("guild-header-popout", guildPopoutPatch);
if (user.banInfo) {
- const endDate = new Date(user.banInfo.banEndDate).getTime();
- if (endDate > Date.now() && (s.user?.banInfo?.banEndDate ?? 0) < endDate) {
+ const endDate = new Date(user.banInfo.banEndDate);
+ if (endDate.getTime() > Date.now() && (s.user?.banInfo?.banEndDate ?? 0) < endDate.getTime()) {
Alerts.show({
title: "You have been banned from ReviewDB",
body: (