pull/399/head
Vladimir Volek 5 years ago
parent 3b7b2a4b82
commit 6c35db4a06

@ -191,13 +191,13 @@ const getQrModal = (props: Props) => {
};
const getConfirmationModal = (props: Props) => {
const { modal, modalActions } = props;
const { modal, modalActions, wallet } = props;
if (modal.context !== MODAL.CONTEXT_CONFIRMATION) return null;
switch (modal.windowType) {
case 'no-backup':
return (<ConfirmNoBackup onReceiveConfirmation={modalActions.onReceiveConfirmation} />);
return (<ConfirmNoBackup device={wallet.selectedDevice} onReceiveConfirmation={modalActions.onReceiveConfirmation} />);
default:
return null;
}

@ -3,7 +3,7 @@ import urlConstants from 'constants/urls';
import type { TrezorDevice } from 'flowtype';
const getOldWalletUrl = (device: ?TrezorDevice): string => {
if (!device) return urlConstants.OLD_WALLET_BETA;
if (!device || !device.firmwareRelease) return urlConstants.OLD_WALLET_BETA;
const release = device.firmwareRelease;
const url = release.channel === 'beta' ? urlConstants.OLD_WALLET_BETA : urlConstants.OLD_WALLET;
return url;

Loading…
Cancel
Save