Skip to content

Commit

Permalink
Fix NonFarmedAssets
Browse files Browse the repository at this point in the history
  • Loading branch information
lq0-github committed Jan 21, 2025
1 parent 67fffcd commit 99f2aa5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions components/NonFarmedAssets/index.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
import { BeatLoader } from "react-spinners";
import { useNonFarmedAssets } from "../../hooks/hooks";
import { useAccountId, useNonFarmedAssets } from "../../hooks/hooks";
import ClaimAllRewards from "../ClaimAllRewards";

function NonFarmedAssets() {
const accountId = useAccountId();
const { hasNonFarmedAssets, hasNegativeNetLiquidity } = useNonFarmedAssets(false);
const {
hasNonFarmedAssets: hasNonFarmedAssetsMEME,
hasNegativeNetLiquidity: hasNegativeNetLiquidityMEME,
} = useNonFarmedAssets(true);
// const main_null = !hasNonFarmedAssets || hasNegativeNetLiquidity;
// const meme_null = !hasNonFarmedAssetsMEME || hasNegativeNetLiquidityMEME;

if (!accountId) {
return null;
}
if (hasNonFarmedAssets === true || hasNegativeNetLiquidity === false) {
return (
<div className="flex xsm:hidden xsm:gap-3 items-center justify-between mb-5 border border-primary border-opacity-60 bg-primary bg-opacity-5 rounded-xl p-3 pl-5">
Expand Down

0 comments on commit 99f2aa5

Please sign in to comment.