Skip to content

Conversation

@lissavxo
Copy link
Collaborator

Related to #460

Description

Fixed altpayment not showing up when currency is declared

Test plan

create a button with currency set and an amount higher than $10, altpayment option should show up

@Klakurka Klakurka requested review from Klakurka and chedieck March 20, 2025 01:48
setIsAboveMinimumAltpaymentUSDAmount(usdAmount >= MINIMUM_ALTPAYMENT_DOLLAR_AMOUNT)
setIsAboveMinimumAltpaymentAmount(usdAmount >= MINIMUM_ALTPAYMENT_DOLLAR_AMOUNT)
} else if (currency === 'USD'){
if (thisAmount && +thisAmount > MINIMUM_ALTPAYMENT_DOLLAR_AMOUNT){
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here and below it should be >=, not >

@chedieck chedieck self-requested a review March 21, 2025 15:07
@Klakurka Klakurka merged commit 960cc0d into master Mar 22, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants