Skip to content

Commit

Permalink
implement skipEntropyCollection feature flag
Browse files Browse the repository at this point in the history
  • Loading branch information
mnzaki committed Aug 14, 2019
1 parent a489bdb commit 222027b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ui/registration/containers/entropy.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { skipEntropyCollection } from 'src/config'
import React from 'react'
import { connect } from 'react-redux'
import { registrationActions } from 'src/actions'
Expand Down Expand Up @@ -58,7 +59,10 @@ export class EntropyContainer extends React.Component<Props, State> {
}

private updateEntropyProgress = async (): Promise<void> => {
const { entropyProgress } = this.state
let { entropyProgress } = this.state
if (skipEntropyCollection) {
entropyProgress = 1
}
if (entropyProgress >= 1) {
this.setState({ sufficientEntropy: true, entropyProgress: 1 })
while (this.entropyGenerator.getProgress() < 1) {
Expand Down

0 comments on commit 222027b

Please sign in to comment.