File tree Expand file tree Collapse file tree 3 files changed +16
-1
lines changed
client/payment-details/transaction-breakdown Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 1+ Significance: minor
2+ Type: fix
3+
4+ Disabled the Transactions Breakdown section to avoid misleading data in certain scenarios.
Original file line number Diff line number Diff line change @@ -30,6 +30,13 @@ interface PaymentTransactionBreakdownProps {
3030 paymentIntentId : string ;
3131}
3232
33+ /**
34+ * Temporary flag to disable transaction breakdown.
35+ *
36+ * Switch to `false` while testing.
37+ */
38+ const disableTransactionBreakdown = true ;
39+
3340const PaymentTransactionBreakdown : React . FC < PaymentTransactionBreakdownProps > = ( {
3441 paymentIntentId,
3542} ) => {
@@ -47,6 +54,10 @@ const PaymentTransactionBreakdown: React.FC< PaymentTransactionBreakdownProps >
4754
4855 const transactionAmounts = useTransactionAmounts ( captureEvent ) ;
4956
57+ if ( disableTransactionBreakdown ) {
58+ return null ;
59+ }
60+
5061 if (
5162 ! captureEvent ?. transaction_details ||
5263 ! captureEvent ?. fee_rates ||
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ declare const global: {
3535 } ;
3636} ;
3737
38- describe ( 'PaymentTransactionBreakdown' , ( ) => {
38+ describe . skip ( 'PaymentTransactionBreakdown' , ( ) => {
3939 beforeEach ( ( ) => {
4040 ( useTimeline as jest . Mock ) . mockReset ( ) ;
4141 ( useTransactionAmounts as jest . Mock ) . mockReset ( ) ;
You can’t perform that action at this time.
0 commit comments