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:
parent
f727b8b7c6
commit
15d3d0a5ca
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