Skip to content

Commit

Permalink
Prevent crashing if config.component.party is not present
Browse files Browse the repository at this point in the history
  • Loading branch information
1v4n4 committed Dec 13, 2024
1 parent 58d6386 commit 12793fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/field/Candidate.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const Affiliation = props => {
return;
}
fetchData(
config.component.party.url ||
config.component.party?.url ||
"https://static.proca.app/ep2024/parties.json"
);
}, [country]);
Expand Down

0 comments on commit 12793fb

Please sign in to comment.