Skip to content

Commit

Permalink
fix: use parameter instead of state variable while setting fiat curre…
Browse files Browse the repository at this point in the history
…ncy (#121)
  • Loading branch information
im-adithya authored Sep 13, 2024
1 parent a3f10d7 commit 716b1fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/settings/FiatCurrency.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function FiatCurrency() {

function select(iso: string) {
setFiatCurrency(iso);
useAppStore.getState().setFiatCurrency(fiatCurrency);
useAppStore.getState().setFiatCurrency(iso);
Toast.show({
type: "success",
text1: "Fiat currency updated",
Expand Down

0 comments on commit 716b1fa

Please sign in to comment.