fix(supertournaments-logo-fix): add condition for supertournaments logo #262

Merged
andrey.dekterev merged 1 commits from supertournaments-logo-fix into develop 2 years ago
  1. 6
      src/helpers/getProfileLogo/index.tsx

@ -15,4 +15,8 @@ export const getProfileLogo = ({
id,
profileType,
sportType,
}: GetLogoArgs) => `${URL_AWS}/media/${PROFILE_NAMES[profileType]}/${sportType}/${id}/${profileType === ProfileTypes.PLAYERS ? 'photo.png' : 'logo.png'}`
}: GetLogoArgs) => {
const extension = ProfileTypes.SUPERTOURNAMENTS === profileType ? 'jpg' : 'png'
return `${URL_AWS}/media/${PROFILE_NAMES[profileType]}/${sportType}/${id}/${profileType === ProfileTypes.PLAYERS ? `photo.${extension}` : `logo.${extension}`}`
}

Loading…
Cancel
Save