diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-11-20 19:48:43 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-11-20 19:48:43 +0100 |
commit | 553da649902f71d5ca34c9a6289ab6b1ef0ba7cb (patch) | |
tree | 857c4eb2c39e4a92e71c8a623d3188e6dbbbd1e9 /src/webex/renderHtml.tsx | |
parent | faedf697626dd37f3ac74ad4cac1ec378598bbf3 (diff) | |
download | wallet-core-553da649902f71d5ca34c9a6289ab6b1ef0ba7cb.tar.xz |
WIP: simplify DB queries and error handling
Diffstat (limited to 'src/webex/renderHtml.tsx')
-rw-r--r-- | src/webex/renderHtml.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/webex/renderHtml.tsx b/src/webex/renderHtml.tsx index e2f821058..f2cccfba6 100644 --- a/src/webex/renderHtml.tsx +++ b/src/webex/renderHtml.tsx @@ -137,12 +137,12 @@ function AuditorDetailsView(props: { </p> ); } - if (rci.exchangeInfo.auditors.length === 0) { + if ((rci.exchangeInfo.details?.auditors ?? []).length === 0) { return <p>The exchange is not audited by any auditors.</p>; } return ( <div> - {rci.exchangeInfo.auditors.map(a => ( + {(rci.exchangeInfo.details?.auditors ?? []).map(a => ( <div> <h3>Auditor {a.auditor_url}</h3> <p> @@ -231,7 +231,7 @@ function FeeDetailsView(props: { <div> <h3>Overview</h3> <p> - Public key: <ExpanderText text={rci.exchangeInfo.masterPublicKey} /> + Public key: <ExpanderText text={rci.exchangeInfo.details?.masterPublicKey ?? "??"} /> </p> <p> {i18n.str`Withdrawal fees:`} {withdrawFee} |