diff --git a/middleware/dedupe.js b/middleware/dedupe.js index 3723512b..786675c4 100644 --- a/middleware/dedupe.js +++ b/middleware/dedupe.js @@ -51,10 +51,10 @@ function isDifferent(item1, item2) { if (item1.hasOwnProperty('name') && item2.hasOwnProperty('name')) { for (var lang in item1.name) { - if(item2.name[lang] || lang === 'default') { - // do not consider absence of an additional name as a difference - propMatch(item1.name, item2.name, lang); - } + if(item2.name[lang] || lang === 'default') { + // do not consider absence of an additional name as a difference + propMatch(item1.name, item2.name, lang); + } } } else {