diff --git a/src/pretix/static/pretixpresale/js/walletdetection.js b/src/pretix/static/pretixpresale/js/walletdetection.js
index fb64e90c4a..35ae17180e 100644
--- a/src/pretix/static/pretixpresale/js/walletdetection.js
+++ b/src/pretix/static/pretixpresale/js/walletdetection.js
@@ -54,10 +54,10 @@ $(function () {
wallets.forEach(function(wallet) {
const labels = $('[data-wallets*='+wallet+'] + label strong, [data-wallets*='+wallet+'] + strong')
- .append(' ')
+ .append(' ')
walletdetection[wallet]()
.then(function(result) {
- const spans = labels.find(".wallet-loading:nth-of-type(1)");
+ const spans = labels.find(".wallet-loading[data-wallet=" + wallet + "]");
if (result) {
spans.removeClass('wallet-loading').hide().text(', ' + walletdetection.name_map[wallet]).fadeIn(300);
} else {
@@ -65,7 +65,7 @@ $(function () {
}
})
.catch(function(result) {
- labels.find(".wallet-loading:nth-of-type(1)").remove();
+ labels.find(".wallet-loading[data-wallet=" + wallet + "]").remove();
})
});
});