Skip to content

Commit 04f59f2

Browse files
authored
Merge pull request #216 from UfukUstali/patch-1
fix options.embedPDF evaluation
2 parents f585d78 + d87184e commit 04f59f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/format/format-ubl.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export class FormatUBLService
131131
}
132132

133133
private async embedPDF(invoice: Invoice, options: InvoiceServiceOptions) {
134-
if (typeof options.embedPDF === 'undefined') return;
134+
if (!options.embedPDF) return;
135135

136136
const pdf = await this.getInvoicePdf(options);
137137
const mimeType = 'application/pdf';

0 commit comments

Comments
 (0)