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:
parent
256bf308b4
commit
2688bc322a
1 changed files with 1 additions and 0 deletions
|
@ -18,6 +18,7 @@ const MOONPAY_KEY = process.env.MOONPAY_SECRET_KEY;
|
||||||
const COUNTRIES = Array.from(
|
const COUNTRIES = Array.from(
|
||||||
new Set(
|
new Set(
|
||||||
countryData.all
|
countryData.all
|
||||||
|
.filter((country) => country.status !== 'deleted')
|
||||||
.map((country) => country.name)
|
.map((country) => country.name)
|
||||||
.sort((a, b) => {
|
.sort((a, b) => {
|
||||||
if (a > b) {
|
if (a > b) {
|
||||||
|
|
Loading…
Reference in a new issue