Fix
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2020-09-30 11:19:52 +02:00
parent 503e1d0ed9
commit 9423216616
1 changed files with 2 additions and 2 deletions

View File

@ -186,9 +186,9 @@ module.exports = Self => {
let payMethodWithIban = 4;
// Validate socialName format
const socialName = changes.socialName || orgData.socialName;
const isTaxDataChecked = changes.isTaxDataChecked || orgData.isTaxDataChecked;
const hasChanges = orgData && changes;
const socialName = changes.socialName || orgData.socialName;
const isTaxDataChecked = hasChanges && (changes.isTaxDataChecked || orgData.isTaxDataChecked);
const socialNameChanged = hasChanges
&& orgData.socialName != socialName;