Skip to content

Commit

Permalink
Fix NonFarmedAssets main_null
Browse files Browse the repository at this point in the history
  • Loading branch information
lq0-github committed Jan 21, 2025
1 parent a30d346 commit d16984d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/NonFarmedAssets/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ 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 (!accountId) {
return null;
}
if (hasNonFarmedAssets === true || hasNegativeNetLiquidity === false) {
if (!main_null) {
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">
Expand All @@ -32,7 +32,7 @@ function NonFarmedAssets() {
/>
</div>
);
} else if (hasNonFarmedAssetsMEME === true || hasNegativeNetLiquidityMEME === false) {
} else if (!meme_null) {
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">
Expand Down

0 comments on commit d16984d

Please sign in to comment.