From 0581e2a0b080120a9f7445c3f97805ff6a0dc272 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 16 Nov 2023 00:43:10 -0800 Subject: fix off by one error --- src/routes/(app)/register/+page.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/routes/(app)/register/+page.svelte b/src/routes/(app)/register/+page.svelte index 82b40e9e..e7aa475f 100644 --- a/src/routes/(app)/register/+page.svelte +++ b/src/routes/(app)/register/+page.svelte @@ -99,8 +99,8 @@ let avatarInput; $: src = `/api/public/${punks[index]}.webp`; - let decr = () => (index = index <= 1 ? 64 : index - 1); - let incr = () => (index = index >= 64 ? 1 : index + 1); + let decr = () => (index = index <= 0 ? 63 : index - 1); + let incr = () => (index = index >= 63 ? 0 : index + 1); let selectAvatar = () => avatarInput.click(); let progress; -- cgit v1.2.3