diff options
| author | Adam Soltys <[email protected]> | 2023-01-06 17:30:54 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-01-06 17:30:54 -0800 |
| commit | 59c420d0d8ba3ff9e84128caf803f41e48566ea1 (patch) | |
| tree | c288f01989a83ddb59d07840ef8e4a9c56d98e6b /src/lib | |
| parent | c099dae06514a16d296b0fd01b24937b2ab45339 (diff) | |
| download | coinos-ui-59c420d0d8ba3ff9e84128caf803f41e48566ea1.tar.gz coinos-ui-59c420d0d8ba3ff9e84128caf803f41e48566ea1.zip | |
profile tweaks
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) => |
