Show donation button if currency code is in lowercase

This commit is contained in:
silverpill 2022-07-28 16:07:54 +00:00
parent 8307b24faa
commit 2fcbb6ad50

View file

@ -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
}