fix: filter out the empty code currencies from the list on locales

This commit is contained in:
Liordino Neto 2020-09-30 17:18:19 -03:00 committed by Josh Harvey
parent 77043c42ad
commit 9577d3548e

View file

@ -73,7 +73,7 @@ const allFields = (getData, auxElements = []) => {
view: getView(currencyData, 'code'),
input: Autocomplete,
inputProps: {
options: currencyData,
options: currencyData?.filter(c => c.code !== ''),
valueProp: 'code',
getLabel: R.path(['code'])
}