Skip to content

Commit

Permalink
add the short circuit to false back in
Browse files Browse the repository at this point in the history
  • Loading branch information
marcaaron committed Apr 23, 2022
1 parent 3f6178c commit e4baae1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/TestToolMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ const TestToolMenu = props => (
This enables QA and internal testers to take advantage of sandbox environments for 3rd party services like Plaid and Onfido. */}
<TestToolRow title="Use Secure Staging Server">
<Switch
isOn={props.user.shouldUseSecureStaging}
isOn={props.user.shouldUseSecureStaging || false}
onToggle={() => User.setShouldUseSecureStaging(!props.user.shouldUseSecureStaging)}
/>
</TestToolRow>

{/* When toggled all network requests will fail. */}
<TestToolRow title="Simulate failing network requests">
<Switch
isOn={props.network.shouldFailAllRequests}
isOn={props.network.shouldFailAllRequests || false}
onToggle={() => Network.setShouldFailAllRequests(!props.network.shouldFailAllRequests)}
/>
</TestToolRow>
Expand Down

0 comments on commit e4baae1

Please sign in to comment.