Skip to content

Commit

Permalink
Update src/store/createStore.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Iveta <[email protected]>
  • Loading branch information
jeesunikim and quietbits authored Apr 16, 2024
1 parent bc3181d commit 684a80a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/store/createStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,8 @@ export const createStore = (options: CreateStoreOptions) =>
}),
updateKeypair: (publicKey: string, secretKey?: string) =>
set((state) => {
const defaultSecretKey = secretKey || "";
state.account.publicKey = publicKey;
state.account.secretKey = defaultSecretKey;
state.account.secretKey = secretKey || "";
state.account.registeredNetwork = state.network;
}),
reset: () =>
Expand Down

0 comments on commit 684a80a

Please sign in to comment.