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",
|
||||
"private": true,
|
||||
"version": "0.2.5",
|
||||
"version": "0.2.6",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
@ -59,7 +59,7 @@ export const ClaimBonds = ({ chainId, address, secondsTo }) => {
|
||||
|
||||
const onSubmit = async (indexes) => {
|
||||
const isFundsInWarmup = warmupInfo.deposit._value > 0n;
|
||||
if ((warmupExists && isFundsInWarmup) || !isPreClaimConfirmed) {
|
||||
if (warmupExists && isFundsInWarmup && !isPreClaimConfirmed) {
|
||||
setIsWapmup(true);
|
||||
} else {
|
||||
setIsPending(true);
|
||||
|
@ -84,7 +84,7 @@ const StakeConfirmationModal = (props) => {
|
||||
);
|
||||
break;
|
||||
case "UNSTAKE":
|
||||
isRebase = props.upperToken === stnkSymbol;
|
||||
isRebase = props.upperToken === props.stnkSymbol;
|
||||
await unstake(
|
||||
props.chainId,
|
||||
props.address,
|
||||
|
Loading…
Reference in New Issue
Block a user