Commit dfbd514d authored by Benjamin Bouvier's avatar Benjamin Bouvier
Browse files

Fix test in getOperationTypeID for unknown types;

parent 4bedf1c2
......@@ -60,7 +60,7 @@ OperationType.getOperationTypeID = function(weboobvalue) {
let weboobStr = `${weboobvalue}`;
if (!MapOperationType.has(weboobStr) === 'undefined') {
if (!MapOperationType.has(weboobStr)) {
log.error(`Error: ${weboobStr} is undefined,
please contact a kresus maintainer`);
return null;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment