Skip to content

Commit

Permalink
fix: activities displaying the wrong texts in profile
Browse files Browse the repository at this point in the history
  • Loading branch information
dinkelspiel committed May 11, 2024
1 parent ec96dba commit e3f273f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/(app)/users/[username]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@ const Profile = async ({ params }: { params: { username: string } }) => {
}
break;
case 'watching':
if (rewatch === -1) {
if (rewatch === 0) {
text = `Started ${activity.entry.category === 'Book' ? 'reading' : 'watching'}`;
} else {
text = `Is for the ${numberSuffix(rewatch + 1)} time ${activity.entry.category === 'Book' ? 'reading' : 'watching'}`;
}
break;
case 'dnf':
if (rewatch === -1) {
if (rewatch === 0) {
text = 'Did not finish';
} else {
text = `Did not finish their ${numberSuffix(rewatch)} rewatch`;
Expand All @@ -84,7 +84,7 @@ const Profile = async ({ params }: { params: { username: string } }) => {
}
break;
case 'completed':
if (rewatch === -1) {
if (rewatch === 0) {
text = 'Completed';
} else {
text = `Completed their ${numberSuffix(rewatch)} rewatch`;
Expand Down

0 comments on commit e3f273f

Please sign in to comment.