From 7b30e7e23f7485f1c14a5956507ac001177d7a9a Mon Sep 17 00:00:00 2001
From: Manti <67705577+mantikafasi@users.noreply.github.com>
Date: Fri, 30 Dec 2022 22:27:10 +0300
Subject: [PATCH] AAGAMING00 SO ANGRY
---
src/plugins/Timezones/index.tsx | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/src/plugins/Timezones/index.tsx b/src/plugins/Timezones/index.tsx
index 3d4735e5c..f8e2a3e5c 100644
--- a/src/plugins/Timezones/index.tsx
+++ b/src/plugins/Timezones/index.tsx
@@ -136,7 +136,7 @@ export default definePlugin({
getProfileTimezonesComponent: (e: any) => {
if (!Vencord.Settings.plugins.Timezones.showTimezonesInProfile) {
- return (<>>);
+ return null;
}
const user = e.user as User;
@@ -147,7 +147,6 @@ export default definePlugin({
getUserTimezone(user.id).then(timezone => setTimezone(timezone));
}, [user.id]);
-
return (
{timezone && getTimeString(timezone)}
-
-
);
}
,
getTimezonesComponent: (e: any) => {
if (Vencord.Settings.plugins.showTimezonesInChat || e.user)
- return (<>>);
+ return null;
const message = e.message as Message;
@@ -177,7 +174,6 @@ export default definePlugin({
getUserTimezone(e.message.author.id).then(timezone => setTimezone(timezone));
}, [message.author.id]);
-
return (
{timezone && "• " + getTimeString(timezone, message.timestamp)}