From ef6d0f97b9bfabf379c74ff823888af25f0a93e1 Mon Sep 17 00:00:00 2001 From: Dave Walker Date: Wed, 22 Nov 2023 08:10:00 +0000 Subject: [PATCH] Add the ability to add new retailers with full details --- .../components/albumPurchaseDetails.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/music-catalogue-ui/components/albumPurchaseDetails.js b/src/music-catalogue-ui/components/albumPurchaseDetails.js index 0b3bb3d..4e361c4 100644 --- a/src/music-catalogue-ui/components/albumPurchaseDetails.js +++ b/src/music-catalogue-ui/components/albumPurchaseDetails.js @@ -78,15 +78,6 @@ const AlbumPurchaseDetails = ({ artist, album, navigate, logout }) => { ]; } - // Identify the default retailer for the drop-down - let defaultValue = null; - if (retailerId != null) { - const retailer = retailers.find((x) => x.id == retailerId); - if (retailer != null) { - defaultValue = retailer.name; - } - } - return ( <>