Skip to content

Commit

Permalink
fix(frontend): lowercase giftcard sorting (#2986)
Browse files Browse the repository at this point in the history
Resolves #1409
  • Loading branch information
Erb3 authored Jan 9, 2025
1 parent 0409fce commit e910e95
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions apps/frontend/src/pages/dashboard/revenue/withdraw.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 }"
Expand Down

0 comments on commit e910e95

Please sign in to comment.