Skip to content

Commit

Permalink
fix: do not show bugged proposal 106
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveVodrazka committed Oct 10, 2024
1 parent 94e7156 commit 7df3625
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/classes/Pool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ export class Pool extends Pair {
this.quoteToken.id === TokenKey.USDC
) {
// ETH/USDC
return [100, 200];
return [100, 300];
}
if (
this.baseToken.id === TokenKey.STRK &&
Expand Down
10 changes: 8 additions & 2 deletions src/components/Proposal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,17 @@ export const Proposals = () => {
return <LoadingAnimation />;
}

if (proposals.length === 0) {
const validProposals = proposals.filter((p) => p.propId !== 106);

if (validProposals.length === 0) {
return <NoContent text="No proposals are currently live" />;
}

return (
<ProposalTable proposals={proposals} account={account} balance={balance} />
<ProposalTable
proposals={validProposals}
account={account}
balance={balance}
/>
);
};

0 comments on commit 7df3625

Please sign in to comment.