From 9577d3548e4cc16ae75ba52590339f804a700429 Mon Sep 17 00:00:00 2001 From: Liordino Neto Date: Wed, 30 Sep 2020 17:18:19 -0300 Subject: [PATCH] fix: filter out the empty code currencies from the list on locales --- new-lamassu-admin/src/pages/Locales/helper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/new-lamassu-admin/src/pages/Locales/helper.js b/new-lamassu-admin/src/pages/Locales/helper.js index 2688045a..8f015757 100644 --- a/new-lamassu-admin/src/pages/Locales/helper.js +++ b/new-lamassu-admin/src/pages/Locales/helper.js @@ -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']) }