diff --git a/frontend/src/routes/guest/register/registerPage.tsx b/frontend/src/routes/guest/register/registerPage.tsx index 71e6437c51acaa13251728ee17af214bc82eb47c..fbb45348301feb400788a68c0ea455ce03ae2c0c 100644 --- a/frontend/src/routes/guest/register/registerPage.tsx +++ b/frontend/src/routes/guest/register/registerPage.tsx @@ -298,6 +298,13 @@ const GuestRegisterStep = forwardRef( ] return countryTuple }) + .filter( + (countryTuple: [string, string]) => + // All countries are expected to have a name, this filtering + // is here to make some tests run in an environment where the + // internationalization is not set up + countryTuple[1] !== undefined + ) .sort( ( countryTuple1: [string, string],