Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastienGllmt committed Jul 7, 2020
1 parent d22563d commit 03559e1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/components/wallet/send/WalletSendForm.js
Expand Up @@ -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';

Expand Down Expand Up @@ -214,8 +213,7 @@ export default class WalletSendForm extends Component<Props> {
};
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);
Expand Down

0 comments on commit 03559e1

Please sign in to comment.