From cd183e640905dcd3dfd1d574024e4c3b8bcfb929 Mon Sep 17 00:00:00 2001 From: Szymon Lesisz Date: Tue, 9 Oct 2018 13:10:26 +0200 Subject: [PATCH] quickfix: reconnect to selected network --- .../notifications/Context/components/Account/index.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/components/notifications/Context/components/Account/index.js b/src/components/notifications/Context/components/Account/index.js index fe42bbd1..6a74883c 100644 --- a/src/components/notifications/Context/components/Account/index.js +++ b/src/components/notifications/Context/components/Account/index.js @@ -6,12 +6,11 @@ import type { Props } from '../../index'; // There could be only one account notification export default (props: Props) => { - const { notification } = props.selectedAccount; - if (notification) { + const { network, notification } = props.selectedAccount; + if (network && notification) { if (notification.type === 'backend') { // special case: backend is down // TODO: this is a different component with "auto resolve" button - return ( { [{ label: 'Connect', callback: async () => { - await props.blockchainReconnect('trop'); + await props.blockchainReconnect(network.network); }, }] } /> ); - - // return (); } return (); }