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"; } }