From faed536f7a2bab0576f482d3f79b9a1ebaeeb8f5 Mon Sep 17 00:00:00 2001 From: Gasper Grom Date: Wed, 31 Jul 2024 15:16:09 +0200 Subject: [PATCH] Reverse checks --- .../work-history/contributor-work-history-edit.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/src/modules/contributor/components/edit/work-history/contributor-work-history-edit.vue b/frontend/src/modules/contributor/components/edit/work-history/contributor-work-history-edit.vue index 8ac86a311f..0a35666b74 100644 --- a/frontend/src/modules/contributor/components/edit/work-history/contributor-work-history-edit.vue +++ b/frontend/src/modules/contributor/components/edit/work-history/contributor-work-history-edit.vue @@ -274,16 +274,16 @@ const hasSameOrgDetails = computed(() => props.contributor.organizations return false; } - // Check if titles matching - if (form.title !== o.memberOrganizations.title) { - return false; - } - // Check for empty info if (!form.title && !form.dateStart && !form.dateEnd) { return true; } + // Check if titles matching + if (form.title !== o.memberOrganizations.title) { + return false; + } + // Check if dates matching const start = form.dateStart && o.memberOrganizations.dateStart ? moment(form.dateStart).startOf('month').isSame(moment(o.memberOrganizations.dateStart), 'day')