page: buy: filter out deleted countries

There are, however, still countries that shouldn't be in the list.

Fixes: #5397
Test: Manual
This commit is contained in:
Simão Gomes Viana 2021-03-28 21:23:37 +02:00
parent 256bf308b4
commit 2688bc322a

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) {