Skip to content

Commit 5b8df4a

Browse files
committed
fix: write state on account refresh
Signed-off-by: Adam Setch <[email protected]>
1 parent 7ef2b89 commit 5b8df4a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/renderer/context/App.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ export const AppProvider = ({ children }: { children: ReactNode }) => {
161161
);
162162

163163
const updatedAuth: AuthState = {
164+
...auth,
164165
accounts: refreshedAccounts,
165166
};
166167

@@ -199,6 +200,7 @@ export const AppProvider = ({ children }: { children: ReactNode }) => {
199200
}
200201

201202
const updatedAuth: AuthState = {
203+
...auth,
202204
accounts: migratedAccounts,
203205
};
204206

0 commit comments

Comments
 (0)