From 26d56c4f1cd1db5479eb511331a37ba00e09dc04 Mon Sep 17 00:00:00 2001 From: Simon Nilsson Date: Thu, 28 Mar 2024 08:55:32 +0100 Subject: [PATCH] Fixed warnings --- server/notification-providers/cellsynt.js | 2 +- src/components/notifications/Cellsynt.vue | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/server/notification-providers/cellsynt.js b/server/notification-providers/cellsynt.js index 9032e98a..de0ead0a 100644 --- a/server/notification-providers/cellsynt.js +++ b/server/notification-providers/cellsynt.js @@ -25,7 +25,7 @@ class Cellsynt extends NotificationProvider { const resp = await axios.post("https://se-1.cellsynt.net/sms.php", null, data); if (resp.data == null ) { throw new Error("Error: Could not connect to Cellsynt, please try again."); - } else if (resp.data.includes("Error:")) { + } else if (resp.data.includes("Error:")) { resp.data = resp.data.replaceAll("Error:", ""); throw new Error(resp.data); } diff --git a/src/components/notifications/Cellsynt.vue b/src/components/notifications/Cellsynt.vue index f87ebda3..296f7278 100644 --- a/src/components/notifications/Cellsynt.vue +++ b/src/components/notifications/Cellsynt.vue @@ -19,10 +19,10 @@
- - - - + + + +

{{ $t("Visible on recipient's mobile phone as originator of the message. Allowed values and function depends on parameter originatortype.") }}

@@ -48,10 +48,10 @@ export default { HiddenInput }, mounted() { - if (this.$parent.notification.cellsyntOriginatortype == null || this.$parent.notification.cellsyntOriginatortype == "") { + if (typeof this.$parent.notification.cellsyntOriginatortype === "undefined" || this.$parent.notification.cellsyntOriginatortype === "") { this.$parent.notification.cellsyntOriginatortype = "alpha"; } - if (this.$parent.notification.cellsyntOriginator == null || this.$parent.notification.cellsyntOriginator == "") { + if (typeof this.$parent.notification.cellsyntOriginator === "undefined" || this.$parent.notification.cellsyntOriginator === "") { this.$parent.notification.cellsyntOriginator = "uptimekuma"; } }