From a099c209a870b4521874cfb5ff083850f7f20968 Mon Sep 17 00:00:00 2001 From: Matt Rider Date: Thu, 13 Jun 2019 19:54:47 -0300 Subject: [PATCH] Fix cypress tests --- webapp/components/ContributionForm/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp/components/ContributionForm/index.vue b/webapp/components/ContributionForm/index.vue index cbaff79f3..20b3d6b9b 100644 --- a/webapp/components/ContributionForm/index.vue +++ b/webapp/components/ContributionForm/index.vue @@ -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 }