diff options
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/utils.js | 2 |
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) => |
