hotfix parsed description array to string
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Alexandre Riera 2023-02-23 15:52:47 +01:00
parent 0997f8cd27
commit bca9e757d4
3 changed files with 3 additions and 3 deletions

View File

@ -68,7 +68,7 @@ class Controller extends Dialog {
this.receipt.description.push(accountingType.receiptDescription); this.receipt.description.push(accountingType.receiptDescription);
if (this.originalDescription) if (this.originalDescription)
this.receipt.description.push(this.originalDescription); this.receipt.description.push(this.originalDescription);
this.receipt.description.join(', '); this.receipt.description = this.receipt.description.join(', ');
} }
this.maxAmount = accountingType && accountingType.maxAmount; this.maxAmount = accountingType && accountingType.maxAmount;

View File

@ -38,7 +38,7 @@ describe('Client', () => {
} }
}; };
expect(controller.receipt.description.join(',')).toEqual('Cash,Albaran: 1, 2'); expect(controller.receipt.description).toEqual('Cash, Albaran: 1, 2');
}); });
}); });