fix: bill denomination not showing on edit

This commit is contained in:
Sérgio Salgado 2021-04-23 11:39:47 +01:00 committed by Josh Harvey
parent ccc4f67c6b
commit ac61601397

View file

@ -3,7 +3,7 @@ import * as R from 'ramda'
const getBillOptions = R.curry((locale, denomiations) => {
const currency = R.prop('fiatCurrency')(locale)
return R.compose(
R.map(code => ({ code, display: code })),
R.map(code => ({ code: parseInt(code), display: code })),
R.keys,
R.path([currency])
)(denomiations)