1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-27 18:58:08 +00:00
This commit is contained in:
Vladimir Volek 2019-02-26 14:50:54 +01:00
parent 3b7b2a4b82
commit 6c35db4a06
2 changed files with 3 additions and 3 deletions

View File

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

View File

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