Skip to content

Commit

Permalink
Switch from returning <></> to null
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgall committed Mar 27, 2024
1 parent b1998b5 commit daad62e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/Proposals/ProposalCard/ProposalCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function ProposalCard({ proposal }: { proposal: FractalProposal }) {
const isSnapshotProposal = !!(proposal as SnapshotProposal).snapshotProposalId;

if (!daoNetwork || !daoAddress) {
return <></>;
return null;
}

return (
Expand Down
2 changes: 1 addition & 1 deletion src/components/ui/modals/ConfirmModifyGovernanceModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function ConfirmModifyGovernanceModal({ close }: { close: () => void }) {
} = useFractal();

if (!daoNetwork || !daoAddress) {
return <></>;
return null;
}

return (
Expand Down
2 changes: 1 addition & 1 deletion src/pages/daos/[daoAddress]/edit/governance/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default function ModifyGovernancePage() {
};

if (!daoNetwork || !daoAddress) {
return <></>;
return null;
}

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default function ProposalDetailsPage() {
}, [proposals, proposalId, isSnapshotProposal]);

if (!daoAddress || !daoNetwork) {
return <></>;
return null;
}

return (
Expand Down

0 comments on commit daad62e

Please sign in to comment.