diff --git a/src/components/SelectExchange.js b/src/components/SelectExchange.js index e0793552..168d509e 100644 --- a/src/components/SelectExchange.js +++ b/src/components/SelectExchange.js @@ -6,12 +6,11 @@ import type { Exchange } from '@ledgerhq/live-common/lib/countervalues/types' import logger from 'logger' import Select from 'components/base/Select' -import Spinner from 'components/base/Spinner' import Text from 'components/base/Text' import CounterValues from 'helpers/countervalues' import type { T } from 'types/common' -class ExchangeSelect extends Component< +class SelectExchange extends Component< { from: Currency, to: Currency, @@ -84,21 +83,20 @@ class ExchangeSelect extends Component< const options = exchanges ? exchanges.map(e => ({ value: e.id, label: e.name, ...e })) : [] - return exchanges && exchanges.length > 0 ? ( + return error ? ( + + {t('app:common.error.load')} + + ) : (