fix: clear hasSubscribed after the logout

This commit is contained in:
enes 2024-10-12 12:05:55 +02:00
parent 25764c7ab4
commit 1d1986f082

@ -124,6 +124,9 @@ export const MainLayout = () => {
if (opts.type === 'login' || opts.type === 'signup') {
dispatch(updateNostrLoginAuthMethod(opts.method))
login()
} else if (opts.type === 'logout') {
// Clear `subscribeForSigits` as called after the logout
hasSubscribed.current = false
}
}