Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
fix(ui): only show crypto selecter when total is known
Browse files Browse the repository at this point in the history
  • Loading branch information
mrfelton committed May 24, 2020
1 parent a026fdf commit 0e30609
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions renderer/components/Pay/PaySummaryLightning.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,13 @@ class PaySummaryLightning extends React.Component {
</Flex>
) : (
<Flex alignItems="baseline">
<CryptoSelector mr={2} />
{totalAmountInSatoshis === 'NaN' ? (
<FormattedMessage {...messages.fee_unknown} />
) : (
<CryptoValue value={totalAmountInSatoshis} />
<>
<CryptoSelector mr={2} />
<CryptoValue value={totalAmountInSatoshis} />
</>
)}
</Flex>
)
Expand Down

0 comments on commit 0e30609

Please sign in to comment.