mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-27 18:58:08 +00:00
Fix flow
This commit is contained in:
parent
3b7b2a4b82
commit
6c35db4a06
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user