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 3c30bb0 commit 67fffcd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions components/NonFarmedAssets/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ function NonFarmedAssets() {
hasNonFarmedAssets: hasNonFarmedAssetsMEME,
hasNegativeNetLiquidity: hasNegativeNetLiquidityMEME,
} = useNonFarmedAssets(true);
const main_null = !hasNonFarmedAssets || hasNegativeNetLiquidity;
const meme_null = !hasNonFarmedAssetsMEME || hasNegativeNetLiquidityMEME;
// const main_null = !hasNonFarmedAssets || hasNegativeNetLiquidity;
// const meme_null = !hasNonFarmedAssetsMEME || hasNegativeNetLiquidityMEME;

if (!main_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">
<div className="flex items-start">
<WarnIcon className="relative top-px flex-shrink-0 xsm:hidden" />
<div className="text-sm text-white mx-2.5 xsm:mx-0">
At least one of your farms in the Mainstream has started emitting extra rewards. If you
are seeing this warning, please click Claim & Join to join the new farm.
are seeing this warning, please click &apos;Claim & Join&apos; to join the new farm.
</div>
</div>
<ClaimAllRewards
Expand All @@ -29,14 +29,14 @@ function NonFarmedAssets() {
/>
</div>
);
} else if (!meme_null) {
} else if (hasNonFarmedAssetsMEME === true || hasNegativeNetLiquidityMEME === 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">
<div className="flex items-start">
<WarnIcon className="relative top-px flex-shrink-0 xsm:hidden" />
<div className="text-sm text-white mx-2.5 xsm:mx-0">
At least one of your farms in the meme has started emitting extra rewards. If you are
seeing this warning, please click Claim & Join to join the new farm.
seeing this warning, please click &apos;Claim & Join&apos; to join the new farm.
</div>
</div>
<ClaimAllRewards
Expand Down

0 comments on commit 67fffcd

Please sign in to comment.