diff --git a/smartapps/smartthings/notify-me-when.src/notify-me-when.groovy b/smartapps/smartthings/notify-me-when.src/notify-me-when.groovy index 1d8a055..3b286a8 100644 --- a/smartapps/smartthings/notify-me-when.src/notify-me-when.groovy +++ b/smartapps/smartthings/notify-me-when.src/notify-me-when.groovy @@ -116,11 +116,11 @@ private sendMessage(evt) { if (pushAndPhone != 'No') { log.debug 'Sending push and SMS' options.method = 'both' - else { + } else { log.debug 'Sending SMS' options.method = 'phone' } - else if (pushAndPhone != 'No') { + } else if (pushAndPhone != 'No') { log.debug 'Sending push' options.method = 'push' } else {