From abb9bdcad7dd39911c0901a5ee8ece177c81e39a Mon Sep 17 00:00:00 2001 From: Shafqat Muneer Date: Tue, 23 Jul 2024 20:43:36 +0500 Subject: [PATCH] chore: Fix All Courses Taping Issue --- Dashboard/Dashboard/Data/Network/DashboardEndpoint.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dashboard/Dashboard/Data/Network/DashboardEndpoint.swift b/Dashboard/Dashboard/Data/Network/DashboardEndpoint.swift index cda65b250..59f379215 100644 --- a/Dashboard/Dashboard/Data/Network/DashboardEndpoint.swift +++ b/Dashboard/Dashboard/Data/Network/DashboardEndpoint.swift @@ -51,8 +51,9 @@ enum DashboardEndpoint: EndPointType { return .requestParameters(parameters: params, encoding: URLEncoding.queryString) case let .getAllCourses(_, filteredBy, page): + var idiom: UIUserInterfaceIdiom { UIDevice.current.userInterfaceIdiom } let params: Parameters = [ - "page_size": 10, + "page_size": idiom == .pad ? 24 : 12, "status": filteredBy, "requested_fields": "course_progress", "page": page