Skip to content

Commit

Permalink
fix(store): wrong name for favorite_currencies (#431)
Browse files Browse the repository at this point in the history
Co-authored-by: dq18 <>
  • Loading branch information
dq18 committed Mar 11, 2024
1 parent e852b02 commit 103f449
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const useAppStore = defineStore('app', {
return state.user.proofTotal
},
getUserFavoriteCurrencies: (state) => {
return state.user.currencies
return state.user.favorite_currencies
},
getUserLastCurrencyUsed: (state) => {
return state.user.last_currency_used
Expand Down Expand Up @@ -69,7 +69,7 @@ export const useAppStore = defineStore('app', {
this.user.country = country
},
setFavoriteCurrencies(currencies) {
this.user.currencies = currencies
this.user.favorite_currencies = currencies
},
setLastCurrencyUsed(currency) {
this.user.last_currency_used = currency
Expand Down

0 comments on commit 103f449

Please sign in to comment.