From c1e63da7787a717873b65baaa4b1c238c5436eae Mon Sep 17 00:00:00 2001 From: Awais Ansari <79941147+awais-ansari@users.noreply.github.com> Date: Tue, 10 Sep 2024 21:11:44 +0500 Subject: [PATCH] feat: removed Russian Federation from country list (#1315) --- src/register/components/ConfigurableRegistrationForm.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/register/components/ConfigurableRegistrationForm.jsx b/src/register/components/ConfigurableRegistrationForm.jsx index 971bdd4a..3013be5f 100644 --- a/src/register/components/ConfigurableRegistrationForm.jsx +++ b/src/register/components/ConfigurableRegistrationForm.jsx @@ -40,7 +40,10 @@ const ConfigurableRegistrationForm = (props) => { States' instead of 'United States of America' which does not exist in country dropdown list and gets the user confused and unable to create an account. So we added the United States entry in the dropdown list. */ - const countryList = useMemo(() => getCountryList(getLocale()).concat([{ code: 'US', name: 'United States' }]), []); + + const countryList = useMemo(() => ( + getCountryList(getLocale()).concat([{ code: 'US', name: 'United States' }]).filter(country => country.code !== 'RU') + ), []); let showTermsOfServiceAndHonorCode = false; let showCountryField = false;