Skip to content

Commit

Permalink
#2296 - Fix the broken search functionality in the /payments page (#…
Browse files Browse the repository at this point in the history
…2335)

* fix the broken payment search

* remove the debug console

* remove unused var
  • Loading branch information
SebinSong authored Sep 9, 2024
1 parent b06a8b6 commit 6d03893
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/views/pages/Payments.vue
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ export default ({
},
filterPayment (payment) {
const {
amount, username, displayName,
amount, displayName,
// NOTE: 'accepted payment method' is not implemented yet, so 'acceptedMethods' just a dummy field for now.
// TODO: update the field name & the related logic (e.g. 'matchesMethodFilter' below) accordingly
// once 'accepted payment method' is implemented in the contract.
Expand All @@ -458,7 +458,7 @@ export default ({
const matchesMethodFilter = methodFilterVal === 'all' || acceptedMethods.includes(methodFilterVal)
const matchesSearchQuery = searchQuery === '' ||
`${amount}${username.toUpperCase()}${displayName.toUpperCase()}`.indexOf(searchQuery.toUpperCase()) !== -1
`${amount}${displayName.toUpperCase()}`.indexOf(searchQuery.toUpperCase()) !== -1
return matchesMethodFilter && matchesSearchQuery
},
Expand Down

0 comments on commit 6d03893

Please sign in to comment.