diff --git a/mobile-app/lib/models/learn/curriculum_model.dart b/mobile-app/lib/models/learn/curriculum_model.dart index 4cd41a3eb..8f8063792 100644 --- a/mobile-app/lib/models/learn/curriculum_model.dart +++ b/mobile-app/lib/models/learn/curriculum_model.dart @@ -99,20 +99,21 @@ class Block { challenges: (data['challengeOrder'] as List) .map( (dynamic challenge) => ChallengeOrder( - id: challenge['id'], - title: challenge['title'], + id: challenge[0] ?? challenge['id'], + title: challenge[1] ?? challenge['title'], ), ) .toList(), challengeTiles: (data['challengeOrder'] as List) .map( (dynamic challenge) => ChallengeListTile( - id: challenge['id'], - name: challenge['title'], - dashedName: challenge['title'] - .toLowerCase() - .replaceAll(' ', '-') - .replaceAll(RegExp(r"[@':]"), ''), + id: challenge[0] ?? challenge['id'], + name: challenge[1] ?? challenge['title'], + dashedName: challenge[1] ?? + challenge['title'] + .toLowerCase() + .replaceAll(' ', '-') + .replaceAll(RegExp(r"[@':]"), ''), ), ) .toList(), diff --git a/mobile-app/pubspec.yaml b/mobile-app/pubspec.yaml index bd86e4689..c613d540e 100644 --- a/mobile-app/pubspec.yaml +++ b/mobile-app/pubspec.yaml @@ -1,7 +1,7 @@ name: freecodecamp description: freecodecamp.org app. publish_to: none -version: 4.0.1+40001 +version: 4.1.0+40100 environment: sdk: ">=2.12.0 <3.0.0" dependencies: