diff --git a/client/components/passport/PassportSummary.tsx b/client/components/passport/PassportSummary.tsx index 25a1cbba..d7bdd8cc 100644 --- a/client/components/passport/PassportSummary.tsx +++ b/client/components/passport/PassportSummary.tsx @@ -80,11 +80,14 @@ const PassportSummary = ({ const level = profile.level ?? 1; const totalXp = profile.total_xp ?? 0; const loyaltyPoints = (profile as any)?.loyalty_points ?? 0; - const progressToNextLevel = Math.min(((totalXp % 1000) / 1000) * 100, 100); - const featureAchievements = achievements.slice(0, MAX_HERO_ACHIEVEMENTS); const godModeUnlocked = achievements.some( (achievement) => achievement.name?.toLowerCase() === "god mode", ); + const isLegendary = godModeUnlocked || level >= 100; + const progressToNextLevel = isLegendary + ? 100 + : Math.min(((totalXp % 1000) / 1000) * 100, 100); + const featureAchievements = achievements.slice(0, MAX_HERO_ACHIEVEMENTS); return ( @@ -147,10 +150,10 @@ const PassportSummary = ({
- Progress to Level {level + 1} + {isLegendary ? "Legendary Status" : `Progress to Level ${level + 1}`} - {(progressToNextLevel || 0).toFixed(0)}% + {isLegendary ? "MAX" : `${(progressToNextLevel || 0).toFixed(0)}%`}