👔 Remove incorrect title for BCDC payment option

This commit is contained in:
Philipp Stracker 2025-02-07 19:21:44 +01:00
parent 055847a83e
commit 307a55b4ec
No known key found for this signature in database

View file

@ -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 />,
},
{