fix unsupported firmware wiki url

pull/288/head
Szymon Lesisz 5 years ago
parent 96fd05676f
commit 7d9857845f

@ -13,9 +13,9 @@ const getInfoUrl = (networkShortcut: ?string) => {
const urls = {
default: 'https://wiki.trezor.io',
xrp: 'https://wiki.trezor.io/Ripple_(XRP)',
txrp: 'https://wiki.trezor.io/Ripple_(XRP)',
};
return networkShortcut ? urls[networkShortcut] : urls.default;
return networkShortcut && urls[networkShortcut] ? urls[networkShortcut] : urls.default;
};
type Props = {

Loading…
Cancel
Save