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

Commit

Permalink
fix(ui): display total amount as unknown when no route found
Browse files Browse the repository at this point in the history
  • Loading branch information
mrfelton committed May 14, 2020
1 parent 2fae06e commit 7422b56
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion renderer/components/Pay/PaySummaryLightning.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,11 @@ class PaySummaryLightning extends React.Component {
) : (
<Flex alignItems="baseline">
<CryptoSelector mr={2} />
<CryptoValue value={totalAmountInSatoshis} />
{totalAmountInSatoshis === 'NaN' ? (
<FormattedMessage {...messages.fee_unknown} />
) : (
<CryptoValue value={totalAmountInSatoshis} />
)}
</Flex>
)
}
Expand Down

0 comments on commit 7422b56

Please # to comment.