There was a false positive here. Thankfully, marking the button's type as constant can quiet the warning.