|
|
|
|
@ -58,7 +58,7 @@ export const ProfileCard = ({ profile }: ProfileType) => { |
|
|
|
|
const tournamentId = profile.additionalInfo?.tournamentId |
|
|
|
|
const isPlayerPage = checkPage(PAGES.player) |
|
|
|
|
|
|
|
|
|
const setGoodleAnalylicsID = () => { |
|
|
|
|
const setGoogleAnalylicsID = () => { |
|
|
|
|
switch (true) { |
|
|
|
|
case checkPage(PAGES.player): |
|
|
|
|
return 'player_favourites' |
|
|
|
|
@ -110,7 +110,7 @@ export const ProfileCard = ({ profile }: ProfileType) => { |
|
|
|
|
<FavoriteButton |
|
|
|
|
isFavorite={isFavorite} |
|
|
|
|
onClick={toggleFavorites} |
|
|
|
|
id={setGoodleAnalylicsID()} |
|
|
|
|
id={setGoogleAnalylicsID()} |
|
|
|
|
> |
|
|
|
|
<StarIcon isFavorite={isFavorite} /> |
|
|
|
|
<T9n t='add_to_favorites' /> |
|
|
|
|
|