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

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-04-01 00:32:23 +02:00 committed by GitHub
parent f727b8b7c6
commit 15d3d0a5ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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