From 8cae9480e709cde4d7ebdb0720e748decfefa614 Mon Sep 17 00:00:00 2001 From: Aditi Bhatia Date: Fri, 1 Mar 2024 13:37:26 -0800 Subject: [PATCH] Update parseStatsDate() to use lowerGranularity instead of bar graph granularity --- .../refresh/lists/sections/traffic/TrafficOverviewUseCase.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WordPress/src/main/java/org/wordpress/android/ui/stats/refresh/lists/sections/traffic/TrafficOverviewUseCase.kt b/WordPress/src/main/java/org/wordpress/android/ui/stats/refresh/lists/sections/traffic/TrafficOverviewUseCase.kt index 6dd519a3849e..5f2fb3bcad0e 100644 --- a/WordPress/src/main/java/org/wordpress/android/ui/stats/refresh/lists/sections/traffic/TrafficOverviewUseCase.kt +++ b/WordPress/src/main/java/org/wordpress/android/ui/stats/refresh/lists/sections/traffic/TrafficOverviewUseCase.kt @@ -282,7 +282,7 @@ class TrafficOverviewUseCase( lowerGranularity ) if (period != null && period != "empty") { - val selectedDate = statsDateFormatter.parseStatsDate(statsGranularity, period) + val selectedDate = statsDateFormatter.parseStatsDate(lowerGranularity, period) selectedDateProvider.selectDate( selectedDate, lowerGranularity