Skip to content

Commit d87184e

Browse files
authored
fix options.embedPDF evaluation
1 parent f585d78 commit d87184e

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)