Commit 3e0f2e8a authored by Chunchi Che's avatar Chunchi Che

fix

parent 0a2badea
Pipeline #20934 passed with stages
in 20 minutes and 46 seconds
......@@ -16,7 +16,7 @@ export async function initStrings() {
}
}
export function fetchStrings(region: string, id: number): string {
export function fetchStrings(region: string, id: string | number): string {
return localStorage.getItem(`${region}_${id}`) || "";
}
......
......@@ -151,7 +151,7 @@ const CounterLine = (props: { counters: { [type: number]: number } }) => {
for (const counterType in props.counters) {
const count = props.counters[counterType];
if (count > 0) {
const counterStr = fetchStrings("!counter", Number(counterType));
const counterStr = fetchStrings("!counter", `0x${counterType}`);
counters.push(`${counterStr}: ${count}`);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment