From ab54f05f6fd6cb0b7cfe3cdc7b0f7f0766e7a40f Mon Sep 17 00:00:00 2001 From: sdjdd Date: Fri, 26 Jan 2024 18:17:29 +0800 Subject: [PATCH] feat(next/web): [export] fill empty nickname --- next/api/src/ticket/export/ExportTicket.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/next/api/src/ticket/export/ExportTicket.ts b/next/api/src/ticket/export/ExportTicket.ts index f9476b7fb..c9d219324 100644 --- a/next/api/src/ticket/export/ExportTicket.ts +++ b/next/api/src/ticket/export/ExportTicket.ts @@ -202,7 +202,7 @@ const encodeUser = (user: User) => { return { id: user.id, username: user.username, - nickname: user.name, + nickname: user.name ?? user.username, email: user.email, }; };