From 1eb8405cd0a47959dcbdb3a4c0f37819d2354ec4 Mon Sep 17 00:00:00 2001 From: Szymon Lesisz Date: Fri, 3 Apr 2020 11:27:23 +0200 Subject: [PATCH] fix InstallBridge download button --- src/views/Landing/views/InstallBridge/index.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/views/Landing/views/InstallBridge/index.js b/src/views/Landing/views/InstallBridge/index.js index fca506a4..c6c34454 100644 --- a/src/views/Landing/views/InstallBridge/index.js +++ b/src/views/Landing/views/InstallBridge/index.js @@ -79,7 +79,6 @@ const LearnMoreText = styled.span` const SelectWrapper = styled(Select)` margin-right: 10px; width: 180px; - margin-bottom: 5px; `; const Download = styled.div` @@ -119,7 +118,7 @@ class InstallBridge extends PureComponent { super(props); const { transport } = props; const packages = transport.bridge ? transport.bridge.packages : []; - const version = transport.bridge ? transport.bridge.packages : []; + const latestVersion = transport.bridge ? transport.bridge.version.join('.') : ''; const installers = packages.map(p => ({ label: p.name, @@ -131,10 +130,10 @@ class InstallBridge extends PureComponent { const currentTarget: ?InstallTarget = installers.find(i => i.preferred === true); this.state = { currentVersion: - props.transport.type && props.transport.type === 'bridge' - ? `Your version ${props.transport.version}` + transport.type && transport.type === 'bridge' + ? `Your version ${transport.version}` : 'Not installed', - latestVersion: version.join('.'), + latestVersion, installers, target: currentTarget || installers[0], uri: 'https://wallet.trezor.io/data/',