page: buy: filter out deleted countries (fixes #5397) #5791

Merged
xdevs23 merged 1 commit from bugfix/5397 into odysee 2021-04-01 00:32:23 +02:00

View file

@ -18,6 +18,7 @@ const MOONPAY_KEY = process.env.MOONPAY_SECRET_KEY;
const COUNTRIES = Array.from(
new Set(
countryData.all
.filter((country) => country.status !== 'deleted')
.map((country) => country.name)
.sort((a, b) => {
if (a > b) {