Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: issue where partner contact is null #1501

Merged
merged 1 commit into from
Nov 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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