diff --git a/src/screens/Analytics/PaymentsAnalytics/PaymentAnalytics.res b/src/screens/Analytics/PaymentsAnalytics/PaymentAnalytics.res index d1f335767..7e633c1ea 100644 --- a/src/screens/Analytics/PaymentsAnalytics/PaymentAnalytics.res +++ b/src/screens/Analytics/PaymentsAnalytics/PaymentAnalytics.res @@ -24,7 +24,18 @@ let make = () => { try { let infoUrl = getURL(~entityName=ANALYTICS_PAYMENTS, ~methodType=Get, ~id=Some(domain)) let infoDetails = await fetchDetails(infoUrl) - setMetrics(_ => infoDetails->getDictFromJsonObject->getArrayFromDict("metrics", [])) + // Need to be removed + let ignoreSessionizedPayment = + infoDetails + ->getDictFromJsonObject + ->getArrayFromDict("metrics", []) + ->Array.filter(ele => { + let metricName = ele->getDictFromJsonObject->getString("name", "") + !String.includes(metricName, "sessionized") && + metricName != "failure_reasons" && + metricName != "payments_distribution" + }) + setMetrics(_ => ignoreSessionizedPayment) setDimensions(_ => infoDetails->getDictFromJsonObject->getArrayFromDict("dimensions", [])) setScreenState(_ => PageLoaderWrapper.Success) } catch {