Skip to content

Commit

Permalink
%表示修正
Browse files Browse the repository at this point in the history
  • Loading branch information
nasubi-dev committed Oct 3, 2024
1 parent 4109b79 commit d04b9d3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pages/members/[id]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ export default function Page(): ReactElement {
const point = unlockedAchievements.filter(
(u) => u.memberEmail === m.email,
).length;
const rateOfUnlocked =
Math.round((point / achievements.length) * 10) / 10;
const rateOfUnlocked = Math.round(
(point / achievements.length) * 100,
);

const thisMemberUnlockedAchievements = unlockedAchievements
.filter((u) => u.memberEmail === m.email)
Expand Down

0 comments on commit d04b9d3

Please sign in to comment.