Added conditionals to the paths to avoid breakage and resolved some images in family account

This commit was merged in pull request #501.
This commit is contained in:
2023-11-07 09:24:28 -08:00
parent 5f39accdd6
commit 5043540abb
9 changed files with 50 additions and 45 deletions
+6 -4
View File
@@ -24,10 +24,12 @@ export default function AvailableJobsCard({
setImageUrl(imagePath);
}, []);
const image = `${image_server}${localStorage.getItem(
"session_token"
)}/job/${datas.job_uid}`;
const image = localStorage.getItem("session_token")
? `${image_server}${localStorage.getItem("session_token")}/job/${
datas.job_uid
}`
: "";
return (
<>
{contentDisplay == "grid" ? (