Save state functionality

`if (!statusId)`, there would already have been an error when trying to call `.charAt(0)` on it.