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:
@@ -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" ? (
|
||||
|
||||
Reference in New Issue
Block a user