Skip to content

Commit

Permalink
fix: issue where partner contact is null
Browse files Browse the repository at this point in the history
fix: lint warning
  • Loading branch information
brettski committed Nov 15, 2023
1 parent f6a4b6f commit f1e7799
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 21 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "that-us",
"version": "3.16.2",
"version": "3.16.3",
"description": "THAT.us website",
"main": "index.js",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion src/app.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
Expand Down
49 changes: 30 additions & 19 deletions src/routes/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

0 comments on commit f1e7799

Please sign in to comment.