aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-12-22 12:18:05 -0800
committerAdam Soltys <[email protected]>2022-12-22 12:18:05 -0800
commit17c9b99208b3881e62275ef3e552a3c30e55939d (patch)
tree58036f893ceb0047477d7a1f6d9b5b8f2d160a09 /src/lib/utils.js
parent6ae27be919808df935fb140fd56bb6ae010a219b (diff)
downloadcoinos-ui-17c9b99208b3881e62275ef3e552a3c30e55939d.tar.gz
coinos-ui-17c9b99208b3881e62275ef3e552a3c30e55939d.zip
add message field to user profile pages
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 14646ad0..82d5b9cf 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 runner = (k) => {
- return Math.round(((parseInt(k[0], 16) - 1) / 15) * 7) + 1 + '.webp';
+ return Math.ceil((parseInt(k.substr(0, 2), 16) / 256) * 20) + '.webp';
};
export const g = (url, fetch, headers) =>