Skip to content

Commit 222027b

Browse files
committed
implement skipEntropyCollection feature flag
1 parent a489bdb commit 222027b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/ui/registration/containers/entropy.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { skipEntropyCollection } from 'src/config'
12
import React from 'react'
23
import { connect } from 'react-redux'
34
import { registrationActions } from 'src/actions'
@@ -58,7 +59,10 @@ export class EntropyContainer extends React.Component<Props, State> {
5859
}
5960

6061
private updateEntropyProgress = async (): Promise<void> => {
61-
const { entropyProgress } = this.state
62+
let { entropyProgress } = this.state
63+
if (skipEntropyCollection) {
64+
entropyProgress = 1
65+
}
6266
if (entropyProgress >= 1) {
6367
this.setState({ sufficientEntropy: true, entropyProgress: 1 })
6468
while (this.entropyGenerator.getProgress() < 1) {

0 commit comments

Comments
 (0)