Skip to content

Commit

Permalink
Check sponsor action url is not false
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-kl1 committed Feb 4, 2025
1 parent 0fe1ffc commit d521324
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/SponsorList/SponsorList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ const SponsorList = ({ items }: { items: SponsorProps[] }) => {
title="Merci à nos sponsors"
backgroundImage="/images/pattern_top-banner_sponsors.svg"
>
{'submitUrl' in actions && typeof actions.submitUrl === 'string' && actions.submitUrl !== '' && (
{'submitUrl' in actions && typeof actions.submitUrl === 'string' && !!actions.submitUrl && (
<ButtonLink variant="secondary" href={actions.submitUrl}>
Devenir sponsor
</ButtonLink>
)}
{'seeAllUrl' in actions && typeof actions.seeAllUrl === 'string' && actions.seeAllUrl !== '' && (
{'seeAllUrl' in actions && typeof actions.seeAllUrl === 'string' && !!actions.seeAllUrl && (
<>
<div className="hidden md:block">
<ButtonLink variant="soft-pink" href={actions.seeAllUrl}>
Expand Down

0 comments on commit d521324

Please sign in to comment.