Skip to content

Commit

Permalink
fix(#394): Resolve Trainee Detail View Errors (#614)
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliviier-dev authored Oct 31, 2024
1 parent acbeb7e commit 643274e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/pages/AdminTraineeDashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -955,11 +955,9 @@ function AdminTraineeDashboard() {
<p>
<i>
{' '}
{traineeDetails && traineeDetails.ratings
? traineeDetails.ratings[0]
? traineeDetails.ratings[0]
: 'not yet rated'
: 'unavailable.'}
{traineeDetails?.ratings && traineeDetails.ratings.length > 0
? Number(traineeDetails.ratings[0].average).toFixed(1) ?? 'not yet rated'
: 'Not yet rated'}
</i>
</p>
</div>
Expand Down

0 comments on commit 643274e

Please sign in to comment.