fix issue during UNSTAKE and avoid false warmup popup

Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
This commit is contained in:
Uncle Fatso 2025-08-16 16:53:54 +03:00
parent 13a05bf0dd
commit e8342708c4
Signed by: f4ts0
GPG Key ID: 565F4F2860226EBB
3 changed files with 3 additions and 3 deletions

View File

@ -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",

View File

@ -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);

View File

@ -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,