File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
web-marketplace/src/components/templates/ProjectDetails Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 11import { MouseEvent } from 'react' ;
2+ import { i18n } from '@lingui/core' ;
23import { MapiResponse } from '@mapbox/mapbox-sdk/lib/classes/mapi-response' ;
34import { GeocodeResponse } from '@mapbox/mapbox-sdk/services/geocoding' ;
45import { getResizedImageUrl } from 'utils/image/getResizedImageUrl' ;
@@ -35,6 +36,7 @@ import {
3536import { getSanityImgSrc } from 'lib/imgSrc' ;
3637
3738import {
39+ DEFAULT_NAME ,
3840 DEFAULT_PROFILE_COMPANY_AVATAR ,
3941 DEFAULT_PROFILE_USER_AVATAR ,
4042} from 'pages/ProfileEdit/ProfileEdit.constants' ;
@@ -200,12 +202,12 @@ export function getAccount(
200202 }
201203
202204 return {
203- name : account . name ,
205+ name : account . name || i18n . _ ( DEFAULT_NAME ) ,
204206 description : account . description ,
205207 type : account . type ,
206208 image : image ,
207209 address : account . addr || '' ,
208- link : account ?. websiteLink ,
210+ link : account ?. websiteLink || `/profiles/ ${ account . id } ` ,
209211 } ;
210212}
211213
You can’t perform that action at this time.
0 commit comments