Correctly mark as logged in with nip07

This commit is contained in:
Kieran 2023-01-02 12:05:20 +00:00
parent 8f824aaa63
commit 6b19183524
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941
2 changed files with 1 additions and 1 deletions

View File

@ -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]);

View File

@ -70,6 +70,7 @@ const LoginSlice = createSlice({
if (nip07PubKey && !state.privateKey) {
state.publicKey = nip07PubKey;
state.nip07 = true;
state.loggedOut = false;
}
// notifications