fix up ts errors

This commit is contained in:
2023-05-12 21:52:00 +02:00
parent ba4a6cb2a2
commit 15072fe2c8
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -11,7 +11,8 @@ const damageFormatter = new Intl.NumberFormat('en-US', {
notation: "compact",
});
export function formatGold(number: number): string {
export function formatGold(number: number | null): string {
if (number === null) return "";
return goldFormatter.format(number);
}