car (... in ...) Les déclarations doivent être filtrées avec une déclaration IF (Forin)
for (const errorName in state.errors) {
if (state.errors.hasOwnProperty(errorName)) {
switch (errorName) {
wolf354