From 15d3d0a5ca492125c59ca4924dad2daa4ef7cad6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sim=C3=A3o=20Gomes=20Viana?= Date: Thu, 1 Apr 2021 00:32:23 +0200 Subject: [PATCH] page: buy: filter out deleted countries (#5791) There are, however, still countries that shouldn't be in the list. Fixes: #5397 Test: Manual --- ui/page/buy/view.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/page/buy/view.jsx b/ui/page/buy/view.jsx index b0f2a1c02..5cef90ece 100644 --- a/ui/page/buy/view.jsx +++ b/ui/page/buy/view.jsx @@ -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) {