Skip to content

Commit

Permalink
Reverse checks
Browse files Browse the repository at this point in the history
  • Loading branch information
gaspergrom committed Jul 31, 2024
1 parent f33aaea commit faed536
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit faed536

Please sign in to comment.