From 59c420d0d8ba3ff9e84128caf803f41e48566ea1 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 6 Jan 2023 17:30:54 -0800 Subject: profile tweaks --- src/lib/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib') diff --git a/src/lib/utils.js b/src/lib/utils.js index 77ed93bd..2b425626 100644 --- a/src/lib/utils.js +++ b/src/lib/utils.js @@ -11,7 +11,7 @@ export function scroll(section) { const base = browser ? '' : PUBLIC_COINOS_URL; export const punk = (k) => { - return Math.floor((parseInt(k.substr(0, 2), 16) / 256) * 64) + 1 + '.webp'; + return Math.floor((parseInt(k.slice(-2), 16) / 256) * 64) + 1 + '.webp'; }; export const g = (url, fetch, headers) => -- cgit v1.2.3