refetch balance after confirmation popup closed during bond purchase
Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
This commit is contained in:
parent
e8342708c4
commit
c3dbe0666f
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "ghost-dao-interface",
|
"name": "ghost-dao-interface",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.2.6",
|
"version": "0.2.7",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
|
@ -35,7 +35,7 @@ const BondInputArea = ({
|
|||||||
const { pathname } = useLocation();
|
const { pathname } = useLocation();
|
||||||
|
|
||||||
const { currentIndex } = useCurrentIndex(chainId);
|
const { currentIndex } = useCurrentIndex(chainId);
|
||||||
const { balance } = useBalance(chainId, bond.quoteToken.quoteTokenAddress, address);
|
const { balance, refetch } = useBalance(chainId, bond.quoteToken.quoteTokenAddress, address);
|
||||||
|
|
||||||
const { symbol: ftsoSymbol } = useTokenSymbol(chainId, "FTSO");
|
const { symbol: ftsoSymbol } = useTokenSymbol(chainId, "FTSO");
|
||||||
const { symbol: ghstSymbol } = useTokenSymbol(chainId, "GHST");
|
const { symbol: ghstSymbol } = useTokenSymbol(chainId, "GHST");
|
||||||
@ -60,6 +60,7 @@ const BondInputArea = ({
|
|||||||
const handleConfirmClose = () => {
|
const handleConfirmClose = () => {
|
||||||
setAmount("");
|
setAmount("");
|
||||||
setConfirmOpen(false);
|
setConfirmOpen(false);
|
||||||
|
refetch();
|
||||||
}
|
}
|
||||||
|
|
||||||
const setMax = () => {
|
const setMax = () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user