Skip to content

Commit

Permalink
fix(Sec Center): remove data.data path
Browse files Browse the repository at this point in the history
  • Loading branch information
plondon committed Jun 26, 2018
1 parent 164589b commit 4e82bd7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class TwoStepVerificationContainer extends React.PureComponent {
}

static getDerivedStateFromProps (nextProps, prevState) {
const data = nextProps.data.data
const data = nextProps.data.getOrElse({})
if (data.authType === 4) return { authName: 'Authenticator App' }
if (data.authType === 5) return { authName: 'SMS Codes' }
if (data.authType === 1 || data.authType === 2) return { authName: 'Yubikey' }
Expand Down

0 comments on commit 4e82bd7

Please sign in to comment.