Skip to content

Commit

Permalink
feat(country on signup): now use users country not browser one
Browse files Browse the repository at this point in the history
  • Loading branch information
milan-bc committed Jul 29, 2021
1 parent 4719883 commit a44063c
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -293,7 +293,7 @@ export default ({ api, coreSagas, networks }) => {
yield call(authNabu)

if (firstLogin) {
const countryCode = navigator.language.slice(-2) || 'US'
const countryCode = country || 'US'
const currency = guessCurrencyBasedOnCountry(countryCode)

yield put(actions.core.settings.setCurrency(currency))
Expand Down

0 comments on commit a44063c

Please sign in to comment.