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

Commit

Permalink
fix(ui): show liquidity warning on all but address step
Browse files Browse the repository at this point in the history
  • Loading branch information
mrfelton committed May 19, 2020
1 parent 8b660c9 commit ec6fa2a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions renderer/components/Pay/PayPanelFooter.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ const PayPanelFooter = props => {
const isChangedStep = prevStep && currentStep !== prevStep
const isPaymentTypeSet = paymentType !== PAYMENT_TYPES.none
const isAddressStep = currentStep === PAY_FORM_STEPS.address
const isSummaryStep = currentStep === PAY_FORM_STEPS.summary

const hadPaymentTypeRef = useRef(isPaymentTypeSet)
if (isPaymentTypeSet) {
Expand All @@ -139,7 +138,7 @@ const PayPanelFooter = props => {

return (
<Flex flexDirection="column">
{!isSummaryStep && (
{!isAddressStep && (
<LiquidityWarning
amountInSats={amountInSats}
cryptoUnit={cryptoUnit}
Expand Down

0 comments on commit ec6fa2a

Please sign in to comment.