Skip to content
Snippets Groups Projects
Commit ffeeae13 authored by pdg16's avatar pdg16
Browse files

fix convert integral time

parent 3c4fc1cb
No related branches found
No related tags found
1 merge request!188fix convert integral time
Pipeline #19888 failed
/*
Copyright (C) 2016 Centro de Computacao Cientifica e Software Livre
Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
This file is part of simcaq-node.
simcaq-node is free software: you can redistribute it and/or modify
......@@ -19,10 +19,12 @@ along with simcaq-node. If not, see <https://www.gnu.org/licenses/>.
*/
module.exports = function integralTime(id) {
if (id == null)
return 'Não se aplica (semi presencial e EaD)';
else if (id == false)
return 'Não';
else if (id == true)
return 'Sim';
switch (id) {
case true:
return 'Sim';
case false:
return 'Não';
default:
return 'Não se aplica (semi presencial e EaD)';
}
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment