fix: clear hasSubscribed after the logout
All checks were successful
Open PR on Staging / audit_and_check (pull_request) Successful in 35s
All checks were successful
Open PR on Staging / audit_and_check (pull_request) Successful in 35s
This commit is contained in:
parent
25764c7ab4
commit
1d1986f082
@ -124,6 +124,9 @@ export const MainLayout = () => {
|
|||||||
if (opts.type === 'login' || opts.type === 'signup') {
|
if (opts.type === 'login' || opts.type === 'signup') {
|
||||||
dispatch(updateNostrLoginAuthMethod(opts.method))
|
dispatch(updateNostrLoginAuthMethod(opts.method))
|
||||||
login()
|
login()
|
||||||
|
} else if (opts.type === 'logout') {
|
||||||
|
// Clear `subscribeForSigits` as called after the logout
|
||||||
|
hasSubscribed.current = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user