Show donation button if currency code is in lowercase
This commit is contained in:
parent
8307b24faa
commit
2fcbb6ad50
1 changed files with 3 additions and 1 deletions
|
@ -428,7 +428,9 @@ function getPaymentOptions(): PaymentOption[] {
|
|||
const items = []
|
||||
for (const [code, name] of CRYPTOCURRENCIES) {
|
||||
const symbol = `$${code}`
|
||||
const field = props.post.account.fields.find(item => item.name === symbol)
|
||||
const field = props.post.account.fields.find(item => {
|
||||
return item.name.toLowerCase() === symbol.toLowerCase()
|
||||
})
|
||||
if (!field) {
|
||||
continue
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue