diff --git a/src/components/UserAvatar.vue b/src/components/UserAvatar.vue index de1b93c..4c8bb81 100644 --- a/src/components/UserAvatar.vue +++ b/src/components/UserAvatar.vue @@ -1,6 +1,8 @@ diff --git a/src/components/UserCard.vue b/src/components/UserCard.vue index 5176b03..bcf3902 100644 --- a/src/components/UserCard.vue +++ b/src/components/UserCard.vue @@ -33,25 +33,19 @@ const mainStore = useMainStore(); const greeting = GetRandomMessage(); -// var last = { -// game: "beatmaniaIIDX", -// version: "22 PENDUAL", -// arcade: "Ho-House", -// }; - -function getCardStyle(game) { - if (game !== null) { - return ` - background-image: url('${ASSET_PATH}/card/${game}.webp'); - background-size: cover; - background-repeat: no-repeat; - `; - } +function getCardStyle() { + return ` + background-image: url('${ASSET_PATH}/card/${ + mainStore.userCustomize?.card ?? "time" + }.webp'); + background-size: cover; + background-repeat: no-repeat; + `; }