From 993dc19a857bc1f444c40b31bff4d582a7728d31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Wed, 25 Oct 2023 15:02:24 +0200 Subject: [PATCH] MOBILE-4362 rating: Trim not trimmed versions --- src/core/features/rating/services/rating.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/features/rating/services/rating.ts b/src/core/features/rating/services/rating.ts index a607e75ea..69fca017c 100644 --- a/src/core/features/rating/services/rating.ts +++ b/src/core/features/rating/services/rating.ts @@ -256,7 +256,7 @@ export class CoreRatingProvider { const response = await site.read('core_rating_get_item_ratings', params, preSets); - if (!site.isVersionGreaterEqualThan([' 3.6.5', '3.7.1', '3.8'])) { + if (!site.isVersionGreaterEqualThan(['3.6.5', '3.7.1', '3.8'])) { // MDL-65042 We need to fetch profiles because the returned profile pictures are incorrect. const promises = response.ratings.map((rating: CoreRatingItemRating) => CoreUser.getProfile(rating.userid, courseId, true, site.id).then((user) => { @@ -407,7 +407,7 @@ export class CoreRatingProvider { const ratingsResults = await Promise.all(promises); - if (!site.isVersionGreaterEqualThan([' 3.6.5', '3.7.1', '3.8'])) { + if (!site.isVersionGreaterEqualThan(['3.6.5', '3.7.1', '3.8'])) { const ratings: CoreRatingItemRating[] = [].concat.apply([], ratingsResults); const userIds = ratings.map((rating) => rating.userid);