We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0df2517 commit b5b8579Copy full SHA for b5b8579
packages/server/client/balloon.ts
@@ -79,7 +79,8 @@ async function printBalloon(doc, lang) {
79
lang === 'zh' ? await convertToChinese(doc.contestproblem.color) : doc.contestproblem.color,
80
doc.awards ? doc.awards : 'N/A',
81
doc.team,
82
- 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) =>
83
+ `- ${k}: ${lang === 'zh' ? await convertToChinese(doc.total[k].color) : doc.total[k].color}`).join('\n') : 'N/A',
84
lang,
85
);
86
printer = await checkReceiptStatus(printer);
0 commit comments