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

pull/262/head
andreidekterev 2 years ago
parent 9354856cda
commit f666ceb265
  1. 6
      src/helpers/getProfileLogo/index.tsx

@ -15,4 +15,8 @@ export const getProfileLogo = ({
id, id,
profileType, profileType,
sportType, 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