[F] Fix no data when a user hasn't played maimai

This commit is contained in:
Azalea
2024-03-14 21:47:39 -04:00
parent 71d7fcbe65
commit 50677ad81d
4 changed files with 47 additions and 22 deletions

View File

@@ -22,6 +22,7 @@ export const EN_REF_USER = {
'UserHome.Game.Ongeki': "Ongeki",
'UserHome.UnknownSong': "(unknown song)",
'UserHome.Settings': 'Settings',
'UserHome.NoValidGame': "The user hasn't played any game yet.",
}
export const EN_REF_Welcome = {

View File

@@ -24,6 +24,7 @@ const zhUser: typeof EN_REF_USER = {
'UserHome.Game.Ongeki': "音击",
'UserHome.UnknownSong': "(未知曲目)",
'UserHome.Settings': '设置',
'UserHome.NoValidGame': "用户还没有玩过游戏",
}
const zhWelcome: typeof EN_REF_Welcome = {

View File

@@ -135,6 +135,8 @@ export const CARD = {
post('/api/v2/card/link', props),
unlink: (cardId: string) =>
post('/api/v2/card/unlink', { cardId }),
userGames: (username: string): Promise<CardSummary> =>
post('/api/v2/card/user-games', { username }),
}
export const GAME = {