Skip to content

Commit 4aebe60

Browse files
committed
fix(web): Properly format unknown GTIN in info message
This oversight only surfaced because of the new "add to lookup" links.
1 parent 683d447 commit 4aebe60

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

server/routes/release.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,9 @@ export default defineRoute(async (req, ctx) => {
6666
if (mbInfo) {
6767
existingMBID = mbInfo.id;
6868
release.info.messages.push({
69-
text:
70-
`Release with GTIN ${release.gtin} already exists on MusicBrainz ([show actions](release/actions?release_mbid=${mbInfo.id}))`,
69+
text: `Release with GTIN ${
70+
release.gtin || '[unknown]'
71+
} already exists on MusicBrainz ([show actions](release/actions?release_mbid=${mbInfo.id}))`,
7172
type: 'info',
7273
});
7374
}

0 commit comments

Comments
 (0)