Skip to content

Commit

Permalink
Rename typoed variable
Browse files Browse the repository at this point in the history
  • Loading branch information
coleaeason committed Oct 13, 2023
1 parent e6549d8 commit 61417ff
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/pages/EnablePayments/ActivateStep.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,18 @@ const defaultProps = {
};

function ActivateStep(props) {
const isActivedWallet = _.contains([CONST.WALLET.TIER_NAME.GOLD, CONST.WALLET.TIER_NAME.PLATINUM], props.userWallet.tierName);
const animation = isActivedWallet ? LottieAnimations.Fireworks : LottieAnimations.ReviewingBankInfo;
const isActivatedWallet = _.contains([CONST.WALLET.TIER_NAME.GOLD, CONST.WALLET.TIER_NAME.PLATINUM], props.userWallet.tierName);
const animation = isActivatedWallet ? LottieAnimations.Fireworks : LottieAnimations.ReviewingBankInfo;
const continueButtonText = props.walletTerms.chatReportID ? props.translate('activateStep.continueToPayment') : props.translate('activateStep.continueToTransfer');

return (
<>
<HeaderWithBackButton title={props.translate('activateStep.headerTitle')} />
<ConfirmationPage
animation={animation}
heading={props.translate(`activateStep.${isActivedWallet ? 'activated' : 'checkBackLater'}Title`)}
description={props.translate(`activateStep.${isActivedWallet ? 'activated' : 'checkBackLater'}Message`)}
shouldShowButton={isActivedWallet}
heading={props.translate(`activateStep.${isActivatedWallet ? 'activated' : 'checkBackLater'}Title`)}
description={props.translate(`activateStep.${isActivatedWallet ? 'activated' : 'checkBackLater'}Message`)}
shouldShowButton={isActivatedWallet}
buttonText={continueButtonText}
onButtonPress={PaymentMethods.continueSetup}
/>
Expand Down

0 comments on commit 61417ff

Please sign in to comment.