fix logout function, prepare for multi-account support
This commit is contained in:
@@ -4,6 +4,7 @@ import { createJSONStorage, persist } from 'zustand/middleware';
|
||||
interface StrongholdState {
|
||||
privkey: null | string;
|
||||
setPrivkey: (privkey: string) => void;
|
||||
clearPrivkey: () => void;
|
||||
}
|
||||
|
||||
export const useStronghold = create<StrongholdState>()(
|
||||
@@ -13,6 +14,9 @@ export const useStronghold = create<StrongholdState>()(
|
||||
setPrivkey: (privkey: string) => {
|
||||
set({ privkey: privkey });
|
||||
},
|
||||
clearPrivkey: () => {
|
||||
set({ privkey: null });
|
||||
},
|
||||
}),
|
||||
{
|
||||
name: 'stronghold',
|
||||
|
||||
Reference in New Issue
Block a user