Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
smakhtin committed Oct 21, 2024
1 parent c552737 commit 1df4342
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/api/src/routes/dotphin/lib/image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { getRandomInt } from '$lib/utils';

function levelToName(level: number) {
return ['orbo', 'nix'][
Math.max(level, MAX_DOTPHIN_LEVEL) - 1
Math.min(level, MAX_DOTPHIN_LEVEL) - 1
] as DOTphinLevel;
}

Expand Down

0 comments on commit 1df4342

Please sign in to comment.