Correctly mark as logged in with nip07
This commit is contained in:
parent
8f824aaa63
commit
6b19183524
@ -3,7 +3,6 @@ import { useSelector } from "react-redux";
|
||||
import Note from "../element/Note";
|
||||
import useTimelineFeed from "../feed/TimelineFeed";
|
||||
import { NoteCreator } from "../element/NoteCreator";
|
||||
import { useMemo } from "react";
|
||||
|
||||
export default function RootPage() {
|
||||
const [loggedOut, pubKey, follows] = useSelector(s => [s.login.loggedOut, s.login.publicKey, s.login.follows]);
|
||||
|
@ -70,6 +70,7 @@ const LoginSlice = createSlice({
|
||||
if (nip07PubKey && !state.privateKey) {
|
||||
state.publicKey = nip07PubKey;
|
||||
state.nip07 = true;
|
||||
state.loggedOut = false;
|
||||
}
|
||||
|
||||
// notifications
|
||||
|
Loading…
x
Reference in New Issue
Block a user