Skip to content

Commit

Permalink
Merge pull request #141 from ThatConference/next/feature
Browse files Browse the repository at this point in the history
fix: issue where partner contact is null
  • Loading branch information
brettski authored Nov 15, 2023
2 parents ec451ab + b43e82c commit 6f31970
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 20 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "thatconference.com",
"version": "5.1.14",
"version": "5.1.15",
"description": "THATConference.com website",
"main": "index.js",
"type": "module",
Expand Down
49 changes: 30 additions & 19 deletions src/routes/(admin my)/my/network/sponsors/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -35,25 +35,36 @@
<img class="h-12 w-12" src={c.partner.companyLogo} alt="" />
</div>
<div class="min-w-0 flex-1 px-4 md:grid md:grid-cols-2 md:gap-4">
<div>
<p class="truncate text-sm font-medium text-thatBlue-800">
{c.partnerContact.firstName}
{c.partnerContact.lastName}
</p>
<p class="mt-2 flex items-center text-sm text-gray-500">
<svg
class="mr-1.5 h-5 w-5 flex-shrink-0 text-gray-400"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20"
fill="currentColor"
aria-hidden="true">
<path
d="M2.003 5.884L10 9.882l7.997-3.998A2 2 0 0016 4H4a2 2 0 00-1.997 1.884z" />
<path d="M18 8.118l-8 4-8-4V14a2 2 0 002 2h12a2 2 0 002-2V8.118z" />
</svg>
<span class="truncate">{c.partnerContact.email}</span>
</p>
</div>
{#if c.partnerContact}
<div>
<p class="truncate text-sm font-medium text-thatBlue-800">
{c.partnerContact.firstName}
{c.partnerContact.lastName}
</p>
<p class="mt-2 flex items-center text-sm text-gray-500">
<svg
class="mr-1.5 h-5 w-5 flex-shrink-0 text-gray-400"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20"
fill="currentColor"
aria-hidden="true">
<path
d="M2.003 5.884L10 9.882l7.997-3.998A2 2 0 0016 4H4a2 2 0 00-1.997 1.884z" />
<path d="M18 8.118l-8 4-8-4V14a2 2 0 002 2h12a2 2 0 002-2V8.118z" />
</svg>
<span class="truncate">{c.partnerContact.email}</span>
</p>
</div>
{:else}
<div>
<p class="truncate text-sm font-medium text-thatBlue-800">
{c.partner.companyName}
</p>
<p class="mt-2 flex items-center text-sm text-gray-500">
Connection created by you
</p>
</div>
{/if}
<div class="hidden md:block">
<div>
<p class="text-sm text-gray-900">
Expand Down

1 comment on commit 6f31970

@vercel
Copy link

@vercel vercel bot commented on 6f31970 Nov 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.