Skip to content

Commit

Permalink
v7.9.8
Browse files Browse the repository at this point in the history
v7.9.8
  • Loading branch information
platschi authored Oct 10, 2023
2 parents 2cb68f3 + f244311 commit 7105713
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kwenta",
"version": "7.9.7",
"version": "7.9.8",
"description": "Kwenta",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kwenta/app",
"version": "7.9.7",
"version": "7.9.8",
"scripts": {
"dev": "next",
"build": "next build",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.empty-file {
opacity: 1
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.empty-file {
opacity: 1
}
6 changes: 3 additions & 3 deletions packages/app/src/components/StakeCard.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { formatNumber, toWei, truncateNumbers } from '@kwenta/sdk/utils'
import { toWei, truncateNumbers } from '@kwenta/sdk/utils'
import Wei from '@synthetixio/wei'
import { FC, memo, useCallback, useEffect, useMemo, useState } from 'react'
import { useTranslation } from 'react-i18next'
Expand All @@ -8,7 +8,7 @@ import Button from 'components/Button'
import NumericInput from 'components/Input/NumericInput'
import { FlexDivCol, FlexDivRowCentered } from 'components/layout/flex'
import SegmentedControl from 'components/SegmentedControl'
import { DEFAULT_TOKEN_DECIMALS } from 'constants/defaults'
import { DEFAULT_CRYPTO_DECIMALS, DEFAULT_TOKEN_DECIMALS } from 'constants/defaults'
import { StakingCard } from 'sections/dashboard/Stake/card'
import { useAppSelector } from 'state/hooks'
import { selectStakingV1 } from 'state/staking/selectors'
Expand Down Expand Up @@ -77,7 +77,7 @@ const StakeCard: FC<StakeCardProps> = memo(
}, [activeTab, isStakeEnabled, isUnstakeEnabled])

const balanceString = useMemo(() => {
return formatNumber(balance, { suggestDecimals: true })
return truncateNumbers(balance, DEFAULT_CRYPTO_DECIMALS)
}, [balance])

const isLoading = useMemo(() => {
Expand Down

1 comment on commit 7105713

@vercel
Copy link

@vercel vercel bot commented on 7105713 Oct 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

kwenta – ./packages/app

www.kwenta.io
kwenta-kwenta.vercel.app
kwenta-git-main-kwenta.vercel.app
kwenta.io

Please sign in to comment.