Fixed scaling of images. Fixed server.js issues for production

This commit is contained in:
Patrick Fic
2020-01-15 22:24:35 -08:00
parent 1134f26282
commit 2971c72f76
11 changed files with 246 additions and 40 deletions

View File

@@ -10,8 +10,7 @@ export default function JobDetailCardsCustomerComponent({ loading, data }) {
<CardTemplate
loading={loading}
title={t("jobs.labels.cards.customer")}
extraLink={data?.owner ? `/manage/owners/${data?.owner?.id}` : null}
>
extraLink={data?.owner ? `/manage/owners/${data?.owner?.id}` : null}>
{data ? (
<span>
<div>{`${data?.pit_owner_first_name ??
@@ -25,7 +24,7 @@ export default function JobDetailCardsCustomerComponent({ loading, data }) {
</a>
) : null}
<div>{`${data?.owner.preferred_contact ?? ""}`}</div>
<div>{`${data?.owner?.preferred_contact ?? ""}`}</div>
</span>
) : null}
</CardTemplate>