It only had a return value for "NoCharge" since the else case was only for not plugged in, resulting in it effectively returning undefined, throwing during assignment "cannot assign [undefined] to string" and leaving whatever text happened to be shown last.
BUG: 420920