aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNickyux <nmsturcke@gmail.com>2022-11-21 16:49:17 +0100
committerNickyux <nmsturcke@gmail.com>2022-11-21 16:49:17 +0100
commit861a26a95989788a29d65cfcc54f0460dce61368 (patch)
tree5d6ec0ba6168a5d13b32c3298c334e2519ed9d80
parentc67cb0261137a606314bbd7e1e501b29a3abfb20 (diff)
downloadVencord-861a26a95989788a29d65cfcc54f0460dce61368.tar.gz
Vencord-861a26a95989788a29d65cfcc54f0460dce61368.tar.bz2
Vencord-861a26a95989788a29d65cfcc54f0460dce61368.zip
Fix logic
-rw-r--r--src/components/PluginSettings/index.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/PluginSettings/index.tsx b/src/components/PluginSettings/index.tsx
index 4fa2c44..58b1f87 100644
--- a/src/components/PluginSettings/index.tsx
+++ b/src/components/PluginSettings/index.tsx
@@ -247,7 +247,7 @@ export default ErrorBoundary.wrap(function Settings() {
);
};
- const [newPlugins, error, newPluginsLoading] = useAwaiter(() => DataStore.get("Vencord_existingPlugins").then((existingPlugins: Record<string, number> | null) => {
+ const [newPlugins, error, newPluginsLoading] = useAwaiter(() => DataStore.get("Vencord_existingPlugins").then((existingPlugins: Record<string, number>) => {
logger.info("called func");
const dateNow: number = Date.now() / 1000;
logger.debug("dateNow", dateNow);
@@ -260,7 +260,7 @@ export default ErrorBoundary.wrap(function Settings() {
logger.debug(plugin.name);
Vencord_existingPlugins[plugin.name] = Object.keys(existingPlugins ? existingPlugins : []).includes(plugin.name) ? existingPlugins[plugin.name] : dateNow;
logger.debug("1");
- if (Vencord_existingPlugins[plugin.name] < (dateNow + 172800)) {
+ if ((Vencord_existingPlugins[plugin.name] + 172800) > dateNow) {
newPlugins.push(plugin.name);
}
});