Skip to content

Commit

Permalink
chore: fix horse pool
Browse files Browse the repository at this point in the history
  • Loading branch information
damnnou committed Mar 13, 2024
1 parent f58a2fb commit ab8110a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/hooks/farming/useActiveFarming.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@ export function useActiveFarming({

useEffect(() => {
if (!farmings?.eternalFarmings) return;
if (!activeFarming) {
if (!poolInfo) return;
if (!rewardToken) return;
if (!bonusRewardToken) return;
if (!activeFarming || !bonusRewardToken.token || !rewardToken.token) {
console.log('Active farming not found');
setFarmingInfo(null);
return;
}
if (!poolInfo) return;
if (!rewardToken) return;
if (!bonusRewardToken) return;

// ! disabled null check
setFarmingInfo({
Expand Down

0 comments on commit ab8110a

Please sign in to comment.