mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-13 08:33:01 -04:00
Fix ReviewDB auth (#1227)
This commit is contained in:
parent
c9c0ab5aca
commit
263fbc377e
2 changed files with 4 additions and 4 deletions
|
@ -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: (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue