Skip to content

Commit

Permalink
Revert "fix: remove bad proposal"
Browse files Browse the repository at this point in the history
This reverts commit db4d5b8.
  • Loading branch information
creed-victor committed Nov 12, 2024
1 parent db4d5b8 commit 9c0946f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 15 deletions.
5 changes: 0 additions & 5 deletions .changeset/rude-carrots-destroy.md

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export const ProposalDataForm: FC<ProposalDataFormProps> = ({

useEffect(() => {
if (proposalType === ProposalCreationType.Proclamation && !governorOwner) {
getProtocolContract(Governor.Owner, RSK_CHAIN_ID).then(owner => {
getProtocolContract(Governor.Admin, RSK_CHAIN_ID).then(owner => {
setGovernorOwner(owner.address);
setGovernor(owner.address);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ export const useGetProposals = () => {
if (!data) {
return [];
}
return data.proposals.filter(
item => item.id !== '0x6496df39d000478a7a7352c01e0e713835051ccd-47',
);

return data.proposals;
}, [data]);

return { loading, data: list as Proposal[] };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,10 @@ export const useGetProposalById = (id: string) => {
},
});

const proposal = useMemo(() => {
const item = data?.proposal as Proposal | undefined;
return item && item.id !== '0x6496df39d000478a7a7352c01e0e713835051ccd-47'
? item
: undefined;
}, [data]);
const proposal = useMemo(
() => data?.proposal as Proposal | undefined,
[data],
);

return { loading, proposal, refetch };
};

0 comments on commit 9c0946f

Please sign in to comment.