fix issue during UNSTAKE and avoid false warmup popup
Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
This commit is contained in:
parent
13a05bf0dd
commit
e8342708c4
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "ghost-dao-interface",
|
"name": "ghost-dao-interface",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.2.5",
|
"version": "0.2.6",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
|
@ -59,7 +59,7 @@ export const ClaimBonds = ({ chainId, address, secondsTo }) => {
|
|||||||
|
|
||||||
const onSubmit = async (indexes) => {
|
const onSubmit = async (indexes) => {
|
||||||
const isFundsInWarmup = warmupInfo.deposit._value > 0n;
|
const isFundsInWarmup = warmupInfo.deposit._value > 0n;
|
||||||
if ((warmupExists && isFundsInWarmup) || !isPreClaimConfirmed) {
|
if (warmupExists && isFundsInWarmup && !isPreClaimConfirmed) {
|
||||||
setIsWapmup(true);
|
setIsWapmup(true);
|
||||||
} else {
|
} else {
|
||||||
setIsPending(true);
|
setIsPending(true);
|
||||||
|
@ -84,7 +84,7 @@ const StakeConfirmationModal = (props) => {
|
|||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
case "UNSTAKE":
|
case "UNSTAKE":
|
||||||
isRebase = props.upperToken === stnkSymbol;
|
isRebase = props.upperToken === props.stnkSymbol;
|
||||||
await unstake(
|
await unstake(
|
||||||
props.chainId,
|
props.chainId,
|
||||||
props.address,
|
props.address,
|
||||||
|
Loading…
Reference in New Issue
Block a user