Skip to content

Commit

Permalink
fix claim button
Browse files Browse the repository at this point in the history
  • Loading branch information
kingsleydon committed Jan 13, 2025
1 parent b6ff4ff commit 6df2932
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 22 deletions.
2 changes: 1 addition & 1 deletion apps/app/components/ClaimKhalaAssets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ const ClaimKhalaAssets = () => {
if (data == null) {
return false
}
return new Decimal(data.free).minus(data.staked).gt(0)
return new Decimal(data.free).add(data.staked).gt(0)
}, [data])

useEffect(() => {
Expand Down
10 changes: 5 additions & 5 deletions apps/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@
"@mui/x-data-grid": "^7.23.6",
"@phala/lib": "workspace:*",
"@phala/store": "workspace:*",
"@polkadot/api": "^15.2.1",
"@polkadot/api": "^15.3.1",
"@polkadot/extension-inject": "^0.57.1",
"@polkadot/keyring": "^13.3.1",
"@polkadot/react-identicon": "^3.12.1",
"@polkadot/types": "^15.2.1",
"@polkadot/types": "^15.3.1",
"@polkadot/util": "^13.3.1",
"@rainbow-me/rainbowkit": "^2.2.1",
"@talismn/connect-wallets": "^1.2.8",
"@tanstack/react-query": "^5.63.0",
"@tanstack/react-query-devtools": "^5.63.0",
"@tanstack/react-query": "^5.64.0",
"@tanstack/react-query-devtools": "^5.64.0",
"ajv": "^8.17.1",
"date-fns": "^4.1.0",
"decimal.js": "^10.4.3",
Expand All @@ -55,7 +55,7 @@
"recharts": "2.15.0",
"sharp": "^0.33.5",
"swr": "^2.3.0",
"viem": "^2.22.6",
"viem": "^2.22.8",
"wagmi": "^2.14.7",
"wretch": "^2.11.0"
},
Expand Down
Loading

0 comments on commit 6df2932

Please sign in to comment.