aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-12-22 13:39:06 -0800
committerAdam Soltys <[email protected]>2022-12-22 13:39:06 -0800
commitb2dfd7eef4a3e892b3eeb6822f2e472b3be03267 (patch)
treea483eb425c9d1eed170a29efaadad1b798c02fb0 /src/lib/utils.js
parent17c9b99208b3881e62275ef3e552a3c30e55939d (diff)
downloadcoinos-ui-b2dfd7eef4a3e892b3eeb6822f2e472b3be03267.tar.gz
coinos-ui-b2dfd7eef4a3e892b3eeb6822f2e472b3be03267.zip
fix avatars
Diffstat (limited to 'src/lib/utils.js')
-rw-r--r--src/lib/utils.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/utils.js b/src/lib/utils.js
index 82d5b9cf..5ffc24e2 100644
--- a/src/lib/utils.js
+++ b/src/lib/utils.js
@@ -10,8 +10,8 @@ export function scroll(section) {
}
const base = browser ? '' : PUBLIC_COINOS_URL;
-export const runner = (k) => {
- return Math.ceil((parseInt(k.substr(0, 2), 16) / 256) * 20) + '.webp';
+export const punk = (k) => {
+ return Math.floor((parseInt(k.substr(0, 2), 16) / 256) * 20) + 1 + '.webp';
};
export const g = (url, fetch, headers) =>