From 13dfb26dd4fdecaf4a936daaeea3701a01d17f2d Mon Sep 17 00:00:00 2001 From: hensm Date: Thu, 23 Jan 2020 15:35:24 +0000 Subject: [PATCH] Fix options page bridge section not showing --- ext/src/ui/options/Bridge.tsx | 3 +-- ext/src/ui/options/index.tsx | 10 ++++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/ext/src/ui/options/Bridge.tsx b/ext/src/ui/options/Bridge.tsx index 4dbebe1..8151063 100644 --- a/ext/src/ui/options/Bridge.tsx +++ b/ext/src/ui/options/Bridge.tsx @@ -58,8 +58,7 @@ const BridgeStats = (props: BridgeStatsProps) => ( interface BridgeProps { - info: BridgeInfo; - platform: string; + info?: BridgeInfo; loading: boolean; } diff --git a/ext/src/ui/options/index.tsx b/ext/src/ui/options/index.tsx index e9248c3..8326cf7 100644 --- a/ext/src/ui/options/index.tsx +++ b/ext/src/ui/options/index.tsx @@ -136,6 +136,10 @@ class OptionsApp extends Component<{}, OptionsAppState> { }); } catch { logger.error("Failed to fetch bridge/platform info."); + + this.setState({ + bridgeLoading: false + }); } } @@ -146,10 +150,8 @@ class OptionsApp extends Component<{}, OptionsAppState> { return (
- { this.state.bridgeInfo && this.state.platform && - } +
{ this.form = form; }} onSubmit={ this.handleFormSubmit }