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)}