From 03559e19544c79e1fa675434077cf037ca7dee1c Mon Sep 17 00:00:00 2001 From: Sebastien Guillemot Date: Tue, 7 Jul 2020 17:21:09 +0900 Subject: [PATCH] small fix --- app/components/wallet/send/WalletSendForm.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/components/wallet/send/WalletSendForm.js b/app/components/wallet/send/WalletSendForm.js index 9a9184cc43..653be1f237 100755 --- a/app/components/wallet/send/WalletSendForm.js +++ b/app/components/wallet/send/WalletSendForm.js @@ -32,8 +32,7 @@ import { import config from '../../../config'; import { InputOwnSkin } from '../../../themes/skins/InputOwnSkin'; import LocalizableError from '../../../i18n/LocalizableError'; -import { CoinTypes, } from '../../../config/numbersConfig'; -import { CardanoForks } from '../../../api/ada/lib/storage/database/prepackaged/networks'; +import { networks } from '../../../api/ada/lib/storage/database/prepackaged/networks'; import WarningBox from '../../widgets/WarningBox'; import type { $npm$ReactIntl$IntlFormat } from 'react-intl'; @@ -214,8 +213,7 @@ export default class WalletSendForm extends Component { }; const isValidLegacy = this.props.isValidLegacyAddress(receiverValue); const isJormungandr = ( - this.props.selectedNetwork.CoinType === CoinTypes.CARDANO && - this.props.selectedNetwork.Fork === CardanoForks.Jormungandr + this.props.selectedNetwork.NetworkId === networks.JormungandrMainnet.NetworkId ); if (!isJormungandr) { updateReceiver(isValidLegacy);