Skip to content

Commit

Permalink
Types
Browse files Browse the repository at this point in the history
  • Loading branch information
mattobee committed May 6, 2024
1 parent 760fcfc commit 1b01757
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Course.astro
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ let { title, website, description, provider } = course;
<!-- Map over the `provider` array. For each provider, check if a website is available.
If it is, display the provider's name as a link to their website. If not, just display
the provider's name as text -->
{provider.map((provider, index) =>
{provider.map((provider: { website: string | URL; name: unknown; }, index: any) =>
provider.website
? <a href={provider.website} class="course__provider" key={index}>{provider.name}</a>
: <span class="course__provider" key={index}>{provider.name}</span>
Expand Down

0 comments on commit 1b01757

Please sign in to comment.