fix: add non-null assertion for default rarity config fallback
All checks were successful
Deploy to Production / test (push) Successful in 35s
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user