Skip to content

Commit

Permalink
Merge branch 'main' into hotfix/search-places
Browse files Browse the repository at this point in the history
  • Loading branch information
Bri74 authored Feb 6, 2025
2 parents f259188 + c35dfa0 commit cf42729
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
5 changes: 1 addition & 4 deletions src/features/transcript/screens/ProvisionalGradeScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,7 @@ export const ProvisionalGradeScreen = ({ navigation, route }: Props) => {
]}
numberOfLines={1}
>
{grade.isFailure || grade.isWithdrawn
? grade.grade.charAt(0).toUpperCase() +
grade.grade.slice(1).toLowerCase()
: grade.grade}
{grade.grade}
</Text>
</Col>
</Row>
Expand Down
5 changes: 1 addition & 4 deletions src/features/transcript/screens/RecordedGradeScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,7 @@ export const RecordedGradeScreen = ({ navigation, route }: Props) => {
}
numberOfLines={1}
>
{isNumber(grade.grade)
? grade.grade
: grade.grade.charAt(0).toUpperCase() +
grade.grade.slice(1).toLowerCase()}
{grade.grade}
</Text>
</Col>
</Row>
Expand Down
1 change: 0 additions & 1 deletion src/utils/grades.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
export const formatGrade = (grade: string) =>
grade
.toLowerCase()
.replace(' e lode', 'L')
.replace('assente', 'grades.absent')
.replace('fallito', 'grades.fail')
Expand Down

0 comments on commit cf42729

Please sign in to comment.