fix: Vencord_cloudSecret check (#2077)

finally got around to fixing it - `null` is never a valid return value,
it's `undefined` 🤦
This commit is contained in:
Lewis Crichton 2023-12-28 02:02:49 +00:00 committed by Nuckyz
parent 7e395fc696
commit d0dfdbbd5f
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -44,7 +44,7 @@ async function syncSettings() {
// pre-check for local shared settings // pre-check for local shared settings
if ( if (
Settings.cloud.authenticated && Settings.cloud.authenticated &&
await dsGet("Vencord_cloudSecret") === null // this has been enabled due to local settings share or some other bug !await dsGet("Vencord_cloudSecret") // this has been enabled due to local settings share or some other bug
) { ) {
// show a notification letting them know and tell them how to fix it // show a notification letting them know and tell them how to fix it
showNotification({ showNotification({
@ -145,4 +145,3 @@ document.addEventListener("DOMContentLoaded", () => {
})); }));
} }
}, { once: true }); }, { once: true });