Skip to content

Commit 8c51624

Browse files
vladolarudpaun1985
authored andcommitted
Remove discount terms and conditions link from payment method fees pill (#8458)
Co-authored-by: Dan Paun <82826872+dpaun1985@users.noreply.github.com>
1 parent 62f1541 commit 8c51624

File tree

2 files changed

+5
-17
lines changed

2 files changed

+5
-17
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Significance: patch
2+
Type: fix
3+
Comment: Remove discount terms and conditions link from the payment method fees pill.
4+
5+

client/utils/account-fees.tsx

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -267,10 +267,6 @@ export const formatAccountFeesDescription = (
267267
fee: __( '%1$f%% + %2$s per transaction', 'woocommerce-payments' ),
268268
/* translators: %f percentage discount to apply */
269269
discount: __( '(%f%% discount)', 'woocommerce-payments' ),
270-
tc_link: __(
271-
' — see <tclink>Terms and Conditions</tclink>',
272-
'woocommerce-payments'
273-
),
274270
displayBaseFeeIfDifferent: true,
275271
...customFormats,
276272
};
@@ -325,19 +321,6 @@ export const formatAccountFeesDescription = (
325321
s: <s />,
326322
};
327323

328-
if ( discountFee.tc_url && 0 < formats.tc_link.length ) {
329-
currentBaseFeeDescription += ' ' + formats.tc_link;
330-
331-
conversionMap.tclink = (
332-
// eslint-disable-next-line jsx-a11y/anchor-has-content
333-
<a
334-
href={ discountFee.tc_url }
335-
target="_blank"
336-
rel="noreferrer"
337-
/>
338-
);
339-
}
340-
341324
return createInterpolateElement(
342325
currentBaseFeeDescription,
343326
conversionMap

0 commit comments

Comments
 (0)