Skip to content

Commit b5b6639

Browse files
committed
Make sure balance sub is only called when there is a change
1 parent 3588349 commit b5b6639

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stores.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ function createBalanceStore(initialState: string | null): BalanceStore {
204204

205205
emitterAddress = $address
206206
}
207-
} else {
207+
} else if (emitterAddress && !$address) {
208208
// no address, so set balance back to null
209209
set && set(undefined)
210210
}

0 commit comments

Comments
 (0)