From 9473340341f187184ed90aa11bac695893b0b842 Mon Sep 17 00:00:00 2001 From: grandeljay Date: Wed, 23 Feb 2022 18:08:50 +0100 Subject: [PATCH] Fix duplicate provider name --- src/assets/js/wishlist-view.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/assets/js/wishlist-view.js b/src/assets/js/wishlist-view.js index af6a737d..b00be8f5 100644 --- a/src/assets/js/wishlist-view.js +++ b/src/assets/js/wishlist-view.js @@ -135,7 +135,13 @@ $(function() { /** Provider name */ if (info.providerName) { - $('' + info.providerName + '').insertBefore(elementImage.children().last()); + var elementProviderName = elementImage.children('span.provider'); + + if (!elementProviderName.length) { + $('' + info.providerName + '').insertBefore(elementImage.children().last()); + } else { + elementProviderName.text(info.providerName); + } } /**