fix: sync client-side secret value visiblity to the type toggle state (#941)