diff --git a/src/helpers/getProfileLogo/index.tsx b/src/helpers/getProfileLogo/index.tsx index 4db7f887..0d8ac7ff 100644 --- a/src/helpers/getProfileLogo/index.tsx +++ b/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}`}` +}