diff options
author | Manti <67705577+mantikafasi@users.noreply.github.com> | 2023-06-03 23:07:04 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-03 20:07:04 +0000 |
commit | 263fbc377eb6444d97f21642fe5be41e30f0a3e4 (patch) | |
tree | 9b1e7dbe8ae011b8c4827d9ed655fef8dc20a617 /src/plugins/reviewDB/index.tsx | |
parent | c9c0ab5acabb07e1a9c699d72c3bbd1b7ffd1738 (diff) | |
download | Vencord-263fbc377eb6444d97f21642fe5be41e30f0a3e4.tar.gz Vencord-263fbc377eb6444d97f21642fe5be41e30f0a3e4.tar.bz2 Vencord-263fbc377eb6444d97f21642fe5be41e30f0a3e4.zip |
Fix ReviewDB auth (#1227)
Diffstat (limited to 'src/plugins/reviewDB/index.tsx')
-rw-r--r-- | src/plugins/reviewDB/index.tsx | 4 |
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: ( |