feat(profile): add hasCompletedWrapped2025 flag to UserProfile and update ProfileHero rendering logic

This commit is contained in:
Moyasee
2025-12-14 15:14:54 +02:00
parent 5329cc446f
commit ccb754fa13
2 changed files with 2 additions and 1 deletions

View File

@@ -389,7 +389,7 @@ export function ProfileHero() {
background: !backgroundImage ? heroBackground : undefined,
}}
>
{userProfile && (
{userProfile?.hasCompletedWrapped2025 && (
<div className="profile-hero__left-actions">
<Button
theme="outline"

View File

@@ -209,6 +209,7 @@ export interface UserProfile {
backupsPerGameLimit: number;
};
badges: string[];
hasCompletedWrapped2025: boolean;
}
export interface UpdateProfileRequest {