Skip to content

Commit a1f2cf0

Browse files
committed
fix src path
1 parent fcd716c commit a1f2cf0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/[locale]/dashboard/[entityType]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ const EntityCard = ({ entityItem, params }: any) => {
119119
<Image
120120
height={160}
121121
width={160}
122-
src={`${process.env.NEXT_PUBLIC_BACKEND_URL}${entityItem?.logo.url}`}
122+
src={`${process.env.NEXT_PUBLIC_BACKEND_URL}/${entityItem?.logo.url}`}
123123
alt={`${entityItem.name} logo`}
124124
onError={() => {
125125
setIsImageValid(false);

app/[locale]/dashboard/components/dashboard-nav.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export function DashboardNav({
6161
<Image
6262
height={140}
6363
width={140}
64-
src={`${process.env.NEXT_PUBLIC_BACKEND_URL}${entityDetails?.logo?.url}`}
64+
src={`${process.env.NEXT_PUBLIC_BACKEND_URL}/${entityDetails?.logo?.url}`}
6565
alt={`${entityDetails?.name} logo`}
6666
onError={() => {
6767
setIsImageValid(false);

0 commit comments

Comments
 (0)