mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-24 09:18:09 +00:00
quickfix: reconnect to selected network
This commit is contained in:
parent
f258f1b125
commit
cd183e6409
@ -6,12 +6,11 @@ import type { Props } from '../../index';
|
|||||||
|
|
||||||
// There could be only one account notification
|
// There could be only one account notification
|
||||||
export default (props: Props) => {
|
export default (props: Props) => {
|
||||||
const { notification } = props.selectedAccount;
|
const { network, notification } = props.selectedAccount;
|
||||||
if (notification) {
|
if (network && notification) {
|
||||||
if (notification.type === 'backend') {
|
if (notification.type === 'backend') {
|
||||||
// special case: backend is down
|
// special case: backend is down
|
||||||
// TODO: this is a different component with "auto resolve" button
|
// TODO: this is a different component with "auto resolve" button
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Notification
|
<Notification
|
||||||
type="error"
|
type="error"
|
||||||
@ -21,14 +20,12 @@ export default (props: Props) => {
|
|||||||
[{
|
[{
|
||||||
label: 'Connect',
|
label: 'Connect',
|
||||||
callback: async () => {
|
callback: async () => {
|
||||||
await props.blockchainReconnect('trop');
|
await props.blockchainReconnect(network.network);
|
||||||
},
|
},
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|
||||||
// return (<Notification type="error" title={notification.title} message={notification.message} />);
|
|
||||||
}
|
}
|
||||||
return (<Notification type={notification.type} title={notification.title} message={notification.message} />);
|
return (<Notification type={notification.type} title={notification.title} message={notification.message} />);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user