From 38b0cb15570c8e33ca4f1092250b882be45854d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Sun, 2 Sep 2018 19:21:50 +0100 Subject: [PATCH] fix(ui): remove dead code --- ui/src/Components/SilenceModal/DateTimeSelect/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/Components/SilenceModal/DateTimeSelect/index.js b/ui/src/Components/SilenceModal/DateTimeSelect/index.js index 650f0192c..e8f902ec8 100644 --- a/ui/src/Components/SilenceModal/DateTimeSelect/index.js +++ b/ui/src/Components/SilenceModal/DateTimeSelect/index.js @@ -114,7 +114,7 @@ const CalculateChangeValueUp = (currentValue, step) => { return 1; } // otherwise use step or a value that moves current value to the next step - return step - (currentValue % step) || step; + return step - (currentValue % step); }; // calculate value for duration decrease button using a goal step