diff --git a/src/api/flags.js b/src/api/flags.js index 19a8887260..235030c9df 100644 --- a/src/api/flags.js +++ b/src/api/flags.js @@ -51,7 +51,7 @@ flagsApi.appendNote = async (caller, data) => { } } catch (e) { // Okay if not does not exist in database - if (!e.message === '[[error:invalid-data]]') { + if (e.message !== '[[error:invalid-data]]') { throw e; } }