From 1df434246597486c5c3c4bdfe623d9cbeb51a8ab Mon Sep 17 00:00:00 2001 From: Vadim Smakhtin Date: Mon, 21 Oct 2024 13:28:48 +0200 Subject: [PATCH] Fix --- apps/api/src/routes/dotphin/lib/image.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/api/src/routes/dotphin/lib/image.ts b/apps/api/src/routes/dotphin/lib/image.ts index 63d982092..f9f050b76 100644 --- a/apps/api/src/routes/dotphin/lib/image.ts +++ b/apps/api/src/routes/dotphin/lib/image.ts @@ -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; }