Fix cypress tests

This commit is contained in:
Matt Rider 2019-06-13 19:54:47 -03:00
parent 8a214a4007
commit a099c209a8

View File

@ -139,8 +139,8 @@ export default {
},
returnLocaleName(locale) {
if (
this.contribution.language === locale.code ||
(!this.contribution.language && this.$i18n.locale() === locale.code)
(this.contribution && this.contribution.language === locale.code) ||
(!this.contribution && this.$i18n.locale() === locale.code)
) {
return locale
}