mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
👔 Remove incorrect title for BCDC payment option
This commit is contained in:
parent
055847a83e
commit
307a55b4ec
1 changed files with 15 additions and 4 deletions
|
@ -45,6 +45,20 @@ const PaymentStepTitle = () => {
|
|||
);
|
||||
};
|
||||
|
||||
const OptionalMethodTitle = () => {
|
||||
const { isCasualSeller } = OnboardingHooks.useBusiness();
|
||||
|
||||
// The BCDC flow does not show a title.
|
||||
if ( isCasualSeller ) {
|
||||
return '';
|
||||
}
|
||||
|
||||
return __(
|
||||
'Available with additional application',
|
||||
'woocommerce-paypal-payments'
|
||||
);
|
||||
};
|
||||
|
||||
const OptionalMethodDescription = () => {
|
||||
const { storeCountry, storeCurrency } = CommonHooks.useWooSettings();
|
||||
const { isCasualSeller } = OnboardingHooks.useBusiness();
|
||||
|
@ -68,10 +82,7 @@ const OptionalMethodDescription = () => {
|
|||
const methodChoices = [
|
||||
{
|
||||
value: true,
|
||||
title: __(
|
||||
'Available with additional application',
|
||||
'woocommerce-paypal-payments'
|
||||
),
|
||||
title: <OptionalMethodTitle />,
|
||||
description: <OptionalMethodDescription />,
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue