I'll extract the `this.alert.type` into a variable; I'd like to keep the `timer` and `alarm` string comparisons mainly so that it's clear what the `else` case is referring to.