File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -177,6 +177,7 @@ export default class Home extends PureComponent {
177177 evaluateCohortEligibility : PropTypes . func ,
178178 pendingShieldCohort : PropTypes . string ,
179179 setPendingShieldCohort : PropTypes . func ,
180+ isSignedIn : PropTypes . bool ,
180181 } ;
181182
182183 state = {
@@ -313,6 +314,7 @@ export default class Home extends PureComponent {
313314 pendingShieldCohort,
314315 evaluateCohortEligibility,
315316 setPendingShieldCohort,
317+ isSignedIn,
316318 } = this . props ;
317319
318320 const {
@@ -338,8 +340,8 @@ export default class Home extends PureComponent {
338340 this . checkStatusAndNavigate ( ) ;
339341 }
340342
341- // Check for pending Shield cohort evaluation
342- if ( pendingShieldCohort && evaluateCohortEligibility ) {
343+ // Check for pending Shield cohort evaluation if user is signed in
344+ if ( pendingShieldCohort && evaluateCohortEligibility && isSignedIn ) {
343345 setPendingShieldCohort ( null ) ;
344346 evaluateCohortEligibility ( pendingShieldCohort ) ;
345347 }
Original file line number Diff line number Diff line change @@ -196,6 +196,7 @@ const mapStateToProps = (state) => {
196196 showShieldEntryModal : getShowShieldEntryModal ( state ) ,
197197 isSocialLoginFlow : getIsSocialLoginFlow ( state ) ,
198198 pendingShieldCohort : getPendingShieldCohort ( state ) ,
199+ isSignedIn : state . metamask . isSignedIn ,
199200 } ;
200201} ;
201202
You can’t perform that action at this time.
0 commit comments