Skip to content

Commit

Permalink
Merge pull request #36 from edx/Shafqat/AllCoursesFilterFix
Browse files Browse the repository at this point in the history
Fix All Courses Taping Issue
  • Loading branch information
rnr committed Oct 22, 2024
1 parent 5dc00ad commit d29b6ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dashboard/Dashboard/Data/Network/DashboardEndpoint.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d29b6ce

Please sign in to comment.