From b2dfd7eef4a3e892b3eeb6822f2e472b3be03267 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 22 Dec 2022 13:39:06 -0800 Subject: fix avatars --- src/lib/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/utils.js') 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) => -- cgit v1.2.3