diff --git a/src/features/defi/providers/foxy/components/FoxyManager/Overview/FoxyOverview.tsx b/src/features/defi/providers/foxy/components/FoxyManager/Overview/FoxyOverview.tsx index 3852b26ba9c..c6d5d5771d4 100644 --- a/src/features/defi/providers/foxy/components/FoxyManager/Overview/FoxyOverview.tsx +++ b/src/features/defi/providers/foxy/components/FoxyManager/Overview/FoxyOverview.tsx @@ -124,19 +124,23 @@ export const FoxyOverview: React.FC = ({ const hasPendingUndelegation = Boolean( undelegations && - undelegations.some(undelegation => - dayjs().isAfter(dayjs(undelegation.completionTime).unix()), + undelegations.some( + undelegation => + dayjs().isAfter(dayjs(undelegation.completionTime).unix()) && + bnOrZero(undelegation.undelegationAmountCryptoBaseUnit).gt(0), ), ) const hasAvailableUndelegation = Boolean( undelegations && - undelegations.some(undelegation => - dayjs().isBefore(dayjs(undelegation.completionTime).unix()), + undelegations.some( + undelegation => + dayjs().isBefore(dayjs(undelegation.completionTime).unix()) && + bnOrZero(undelegation.undelegationAmountCryptoBaseUnit).gt(0), ), ) - const claimDisabled = !canClaim && !hasAvailableUndelegation + const claimDisabled = !canClaim || !(hasAvailableUndelegation || hasPendingUndelegation) const selectedLocale = useAppSelector(selectSelectedLocale) const descriptionQuery = useGetAssetDescriptionQuery({ assetId: stakingAssetId, selectedLocale })