fix: avoid warning on first fiat currency selection
This commit is contained in:
parent
b39692e6f7
commit
77043c42ad
1 changed files with 4 additions and 1 deletions
|
|
@ -106,7 +106,10 @@ const Locales = ({ name: SCREEN_KEY }) => {
|
|||
const handleSave = it => {
|
||||
const newConfig = toNamespace(SCREEN_KEY)(it.locale[0])
|
||||
|
||||
if (newConfig.locale_fiatCurrency !== config.fiatCurrency)
|
||||
if (
|
||||
config.fiatCurrency &&
|
||||
newConfig.locale_fiatCurrency !== config.fiatCurrency
|
||||
)
|
||||
setDataToSave(newConfig)
|
||||
else save(newConfig)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue