Skip to content

Commit

Permalink
fix: use release url instead of indirect reference
Browse files Browse the repository at this point in the history
closes #933
  • Loading branch information
Simon committed Dec 14, 2024
1 parent 220cf89 commit 31e349c
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ import React from "react";
import { useTranslation } from "react-i18next";
import { FaChevronRight } from "react-icons/fa";
import { Link } from "react-router-dom";
import { getArtistUrl, getTrackGroupUrlReference } from "utils/artist";
import {
getArtistUrl,
getReleaseUrl,
getTrackGroupUrlReference,
} from "utils/artist";

const UserBoughtYourAlbum: React.FC<{ notification: Notification }> = ({
notification,
Expand All @@ -25,7 +29,10 @@ const UserBoughtYourAlbum: React.FC<{ notification: Notification }> = ({
: <strong>{notification.trackGroup.title}</strong>
</div>
<Link
to={getTrackGroupUrlReference(notification.trackGroup)}
to={getReleaseUrl(
notification.trackGroup.artist,
notification.trackGroup
)}
className={css`
display: flex;
align-items: center;
Expand Down

0 comments on commit 31e349c

Please sign in to comment.