Skip to content

Commit b5b8579

Browse files
committed
fix
1 parent 0df2517 commit b5b8579

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/server/client/balloon.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ async function printBalloon(doc, lang) {
7979
lang === 'zh' ? await convertToChinese(doc.contestproblem.color) : doc.contestproblem.color,
8080
doc.awards ? doc.awards : 'N/A',
8181
doc.team,
82-
doc.total ? Object.keys(doc.total).map((k) => `- ${k}: ${doc.total[k].color}`).join('\n') : 'N/A',
82+
doc.total ? Object.keys(doc.total).map(async (k) =>
83+
`- ${k}: ${lang === 'zh' ? await convertToChinese(doc.total[k].color) : doc.total[k].color}`).join('\n') : 'N/A',
8384
lang,
8485
);
8586
printer = await checkReceiptStatus(printer);

0 commit comments

Comments
 (0)