Skip to content

Commit 723c10d

Browse files
committed
Strip non-numerics from barcode.
1 parent 31cc73b commit 723c10d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/api/discogs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export const getCollectionAndWants = async (
7777
acc[record.recordID] = {
7878
image: record.image,
7979
imageHigh: record.imageHigh,
80-
barcode: record.barcode,
80+
barcode: record.barcode.replace(/\D/g, '') ?? undefined,
8181
}
8282
return acc
8383
}, {})

0 commit comments

Comments
 (0)