Skip to content

Commit 225ac3f

Browse files
committed
fix: initialize cashuWallets to prevent TypeError during onboarding mint info fetch
1 parent eb8705d commit 225ac3f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

stores/CashuStore.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ export default class CashuStore {
164164
@observable public mintUrls: Array<string>;
165165
@observable public selectedMintUrl: string;
166166
@observable public randomizeMintSelection: boolean = false;
167-
@observable public cashuWallets: { [key: string]: Wallet };
167+
@observable public cashuWallets: { [key: string]: Wallet } = {};
168168
@observable public totalBalanceSats: number;
169169
// Per-mint data fetched from CDK
170170
@observable public mintBalances: { [key: string]: number } = {};

0 commit comments

Comments
 (0)