From 28e076579539931ecc3caf2e3f3f5a43edb9fa24 Mon Sep 17 00:00:00 2001 From: Uotila Terho Date: Tue, 7 Aug 2018 15:41:20 +0300 Subject: [PATCH] bugfix --- backend/server/helpers/application_helper.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/server/helpers/application_helper.js b/backend/server/helpers/application_helper.js index 36b3a9b24..f4b1a2814 100755 --- a/backend/server/helpers/application_helper.js +++ b/backend/server/helpers/application_helper.js @@ -46,13 +46,13 @@ function CurrentTermAndYear() { * @returns {string} */ function getCurrentTerm(month) { - if (1 <= month <= 5) { + if (1 <= month && month <= 5) { return 'K' } - if (6 <= month <= 8) { + if (6 <= month && month <= 8) { return 'V' } - if (9 <= month <= 12) { + if (9 <= month && month <= 12) { return 'S' } }