Skip to content

Commit

Permalink
added truthy logic for resources object
Browse files Browse the repository at this point in the history
  • Loading branch information
Barukimang committed Jun 21, 2024
1 parent e7e4732 commit 95b6dc9
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@ class CreateProposalUtils {
title: values.proposalTitle,
summary: values.proposalSummary,
description: values.proposal,
resources: values.links.filter(
({name, url}) => url != null && name != null
),
resources: values.links.filter(({name, url}) => name && url),
});

getProposalIdFromReceipt = (
Expand Down

0 comments on commit 95b6dc9

Please sign in to comment.