mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 14:20:42 +08:00
Refresh balance on page load
This commit is contained in:
+1
-1
@@ -41,8 +41,8 @@ export interface Store extends Readable<State> {
|
||||
|
||||
export const loadState = (initial: State): Store => {
|
||||
const store = writable<State>(initial);
|
||||
|
||||
const session = window.localStorage.getItem("session");
|
||||
|
||||
if (session) store.set({ connection: Connection.Connected, session: JSON.parse(session) });
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user