Skip to content

Commit

Permalink
Add dispute fee to accept tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
Jinksi committed Sep 21, 2023
1 parent 6a55603 commit 3d35ecc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions client/payment-details/dispute-details/dispute-steps.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import type { Dispute } from 'wcpay/types/disputes';
import { ChargeBillingDetails } from 'wcpay/types/charges';
import { formatExplicitCurrency } from 'utils/currency';
import { ClickTooltip } from 'wcpay/components/tooltip';
import { getDisputeFeeFormatted } from 'wcpay/disputes/utils';

interface Props {
dispute: Dispute;
Expand Down Expand Up @@ -140,8 +141,10 @@ const DisputeSteps: React.FC< Props > = ( {
`Accepting this dispute will automatically close it. Your account will be charged a %s fee, and the disputed amount will be refunded to the cardholder.`,
'woocommerce-payments'
),
// TODO: use getDisputeFee() from https://github.com/Automattic/woocommerce-payments/pull/7118.
''
getDisputeFeeFormatted(
dispute,
true
) || '-'
) }
/>
),
Expand Down

0 comments on commit 3d35ecc

Please sign in to comment.