Skip to content

Commit

Permalink
chore: remove currency metrics (#761)
Browse files Browse the repository at this point in the history
  • Loading branch information
sagarnaikjuspay authored May 30, 2024
1 parent 41622fc commit 6f251e1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 22 deletions.
3 changes: 1 addition & 2 deletions src/screens/Analytics/AnalyticsTypes.res
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ type refundColType =
| NoCol

let defaultRefundColumns = [Connector, RefundMethod, Currency, Status]
let allRefundColumns = [SuccessRate, Count, SuccessCount, ProcessedAmount]
let allRefundColumns = [SuccessRate, Count, SuccessCount]

type refundTableType = {
refund_success_rate: float,
Expand Down Expand Up @@ -182,7 +182,6 @@ let allPaymentColumns = [
WeeklySuccessRate,
Count,
SuccessCount,
ProcessedAmount,
PaymentErrorMessage,
AvgTicketSize,
]
Expand Down
21 changes: 2 additions & 19 deletions src/screens/Analytics/PaymentsAnalytics/PaymentAnalyticsEntity.res
Original file line number Diff line number Diff line change
Expand Up @@ -332,25 +332,8 @@ let getColumns: bool => array<DynamicSingleStat.columns<colT>> = connector_succe
{
sectionName: "",
columns: connector_success_rate
? [
SuccessRate,
Count,
SuccessCount,
ProcessedAmount,
AvgTicketSize,
RetriesCount,
RetriesAmountProcessed,
ConnectorSuccessRate,
]
: [
SuccessRate,
Count,
SuccessCount,
ProcessedAmount,
AvgTicketSize,
RetriesCount,
RetriesAmountProcessed,
],
? [SuccessRate, Count, SuccessCount, AvgTicketSize, RetriesCount, ConnectorSuccessRate]
: [SuccessRate, Count, SuccessCount, AvgTicketSize, RetriesCount],
},
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ type colT =
let defaultColumns: array<DynamicSingleStat.columns<colT>> = [
{
sectionName: "",
columns: [SuccessRate, Count, SuccessCount, ProcessedAmount],
columns: [SuccessRate, Count, SuccessCount],
},
]

Expand Down

0 comments on commit 6f251e1

Please sign in to comment.