diff client/src/components/fairway/AvailableFairwayDepth.vue @ 4024:5eaa3d45757e

fairway_availability: use Math.round() to round hoursInDays
author Thomas Junk <thomas.junk@intevation.de>
date Mon, 22 Jul 2019 15:42:43 +0200
parents 009e9400bef0
children 630b817d12b3
line wrap: on
line diff
--- a/client/src/components/fairway/AvailableFairwayDepth.vue	Mon Jul 22 13:28:04 2019 +0200
+++ b/client/src/components/fairway/AvailableFairwayDepth.vue	Mon Jul 22 15:42:43 2019 +0200
@@ -81,7 +81,7 @@
 import { FREQUENCIES } from "@/store/fairwayavailability";
 import { defaultDiagramTemplate } from "@/lib/DefaultDiagramTemplate";
 
-const hoursInDays = x => x / 24;
+const hoursInDays = x => Math.round(x / 24);
 
 export default {
   mixins: [diagram, pdfgen, templateLoader],