fix: add non-null assertion for default rarity config fallback
All checks were successful
Deploy to Production / test (push) Successful in 35s

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
syntaxbullet
2026-03-26 15:15:53 +01:00
parent 305a0b0553
commit 9e6bb8b148

View File

@@ -14,7 +14,7 @@ export const RARITY_CONFIG: Record<string, { color: number; emoji: string; label
};
export function getRarityConfig(rarity: string): { color: number; emoji: string; label: string } {
return RARITY_CONFIG[rarity] ?? RARITY_CONFIG["C"];
return RARITY_CONFIG[rarity] ?? (RARITY_CONFIG["C"]!);
}
export function defaultName(path: string): string {