scoreboard: bug fixes

This commit is contained in:
undefined committed 2024-11-17 23:28:39 +08:00
1 parent c555992478
commit 53fc85ddd6
6 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -96,7 +96,7 @@ export async function apply(ctx: Context) {
},
},
balloon_color: tdoc.balloon
? tdoc.pids.map((i) => ({
? tdoc.pids.filter((i) => tdoc.balloon[i]).map((i) => ({
color: '#000',
background_color: typeof tdoc.balloon[i] === 'string' ? tdoc.balloon[i] : tdoc.balloon[i].color,
}))
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@hydrooj/scoreboard-xcpcio",
"license": "AGPL-3.0-or-later",
"version": "0.0.2",
"version": "0.0.3",
"main": "index.ts",
"scripts": {
"postinstall": "node -r @hydrooj/register install.ts"