aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-01-06 17:30:54 -0800
committerAdam Soltys <[email protected]>2023-01-06 17:30:54 -0800
commit59c420d0d8ba3ff9e84128caf803f41e48566ea1 (patch)
treec288f01989a83ddb59d07840ef8e4a9c56d98e6b /src/lib/utils.js
parentc099dae06514a16d296b0fd01b24937b2ab45339 (diff)
downloadcoinos-ui-59c420d0d8ba3ff9e84128caf803f41e48566ea1.tar.gz
coinos-ui-59c420d0d8ba3ff9e84128caf803f41e48566ea1.zip
profile tweaks
Diffstat (limited to 'src/lib/utils.js')
-rw-r--r--src/lib/utils.js2
1 files changed, 1 insertions, 1 deletions
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) =>