From 26af8c355ee358caaaa4fdabb61e52bbd74bafd8 Mon Sep 17 00:00:00 2001 From: Niels Hofmans Date: Tue, 25 Apr 2023 08:38:56 +0200 Subject: [PATCH] fix: fix toFixed error --- workers/quote.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workers/quote.js b/workers/quote.js index 8f9f95e..ba25772 100644 --- a/workers/quote.js +++ b/workers/quote.js @@ -363,7 +363,7 @@ function generatePDF(request) let itemCost = totalCost * 0.12; doc.setFont(undefined, 'normal'); - docText(20, itemY, 'x1'.toFixed(2).padEnd(15) + ' Support fee (12%)'); + docText(20, itemY, 'x1'.padEnd(15) + ' Support fee (12%)'); docText(-40, itemY, '€ ' + itemCost); itemY += 5;