fix(frontend): lowercase giftcard sorting (#2986)

Resolves #1409
This commit is contained in:
Erb3
2025-01-10 00:16:17 +01:00
committed by GitHub
parent fd9653e283
commit 6266f29b99

View File

@@ -38,9 +38,13 @@
<div class="withdraw-options-scroll">
<div class="withdraw-options">
<button
v-for="method in payoutMethods.filter((x) =>
x.name.toLowerCase().includes(search.toLowerCase()),
)"
v-for="method in payoutMethods
.filter((x) => x.name.toLowerCase().includes(search.toLowerCase()))
.sort((a, b) =>
a.type !== 'tremendous'
? -1
: a.name.toLowerCase().localeCompare(b.name.toLowerCase()),
)"
:key="method.id"
class="withdraw-option button-base"
:class="{ selected: selectedMethodId === method.id }"