aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-11-16 00:43:10 -0800
committerAdam Soltys <[email protected]>2023-11-16 00:43:10 -0800
commit0581e2a0b080120a9f7445c3f97805ff6a0dc272 (patch)
tree1b1eba5464d3f12351652a161bded29554118b4d
parentea2f0df7e81f16e10af26eb5bd156c38d0f1ce31 (diff)
downloadcoinos-ui-0581e2a0b080120a9f7445c3f97805ff6a0dc272.tar.gz
coinos-ui-0581e2a0b080120a9f7445c3f97805ff6a0dc272.zip
fix off by one error
-rw-r--r--src/routes/(app)/register/+page.svelte4
1 files changed, 2 insertions, 2 deletions
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;