This commit is contained in:
parent
0dd53f9c1f
commit
a8cd6a1b5c
@ -37,8 +37,6 @@ export const toReadable = (value: bigint, applyTokenDivision?: boolean) => {
|
|||||||
{ value: BigInt('1000000000000000000000000000000000000000000000000000000'), suffix: 'septendecillion' },
|
{ value: BigInt('1000000000000000000000000000000000000000000000000000000'), suffix: 'septendecillion' },
|
||||||
];
|
];
|
||||||
|
|
||||||
console.log(value)
|
|
||||||
|
|
||||||
for (let i = 0; i < suffixes.length; i++) {
|
for (let i = 0; i < suffixes.length; i++) {
|
||||||
if (value < suffixes[i].value) {
|
if (value < suffixes[i].value) {
|
||||||
if (i == 0) {
|
if (i == 0) {
|
||||||
|
|||||||
@ -25,7 +25,6 @@ const Header = () => {
|
|||||||
|
|
||||||
const perSecondParagraph = useMemo(() => {
|
const perSecondParagraph = useMemo(() => {
|
||||||
const perSecond = toReadable(army?.profit_per_second ?? BigInt(0))
|
const perSecond = toReadable(army?.profit_per_second ?? BigInt(0))
|
||||||
console.log(perSecond, army?.profit_per_second)
|
|
||||||
return (isRegistered) ?
|
return (isRegistered) ?
|
||||||
<p className={styles.counter_per_seconds}>per second: {perSecond}</p>
|
<p className={styles.counter_per_seconds}>per second: {perSecond}</p>
|
||||||
: null
|
: null
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user