Skip to content

Commit

Permalink
Merge pull request #1057 from ita-social-projects/develop
Browse files Browse the repository at this point in the history
Update master
  • Loading branch information
Adeodonne authored Dec 7, 2023
2 parents 112572c + e0593b7 commit a732eaa
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ const StreetcodeSliderItem = ({ streetcode, image }: Props) => {
});

const handleClickRedirect = () => {
toStreetcodeRedirectClickEvent(streetcode.transliterationUrl, 'main_page');
window.location.href = streetcode.transliterationUrl;
if (streetcode.transliterationUrl) {
toStreetcodeRedirectClickEvent(streetcode.transliterationUrl, 'main_page');
window.location.href = streetcode.transliterationUrl;
}
};

const handleLinkClick = (e: React.MouseEvent<HTMLAnchorElement>) => {
Expand Down

0 comments on commit a732eaa

Please sign in to comment.