Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pandadtdyy committed Jun 14, 2024
1 parent 0df2517 commit b5b8579
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/server/client/balloon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ async function printBalloon(doc, lang) {
lang === 'zh' ? await convertToChinese(doc.contestproblem.color) : doc.contestproblem.color,
doc.awards ? doc.awards : 'N/A',
doc.team,
doc.total ? Object.keys(doc.total).map((k) => `- ${k}: ${doc.total[k].color}`).join('\n') : 'N/A',
doc.total ? Object.keys(doc.total).map(async (k) =>
`- ${k}: ${lang === 'zh' ? await convertToChinese(doc.total[k].color) : doc.total[k].color}`).join('\n') : 'N/A',
lang,
);
printer = await checkReceiptStatus(printer);
Expand Down

0 comments on commit b5b8579

Please sign in to comment.