Skip to content

Commit

Permalink
remove short circuit
Browse files Browse the repository at this point in the history
  • Loading branch information
marcaaron committed Apr 22, 2022
1 parent d2467bd commit 3f6178c
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 || false}
isOn={props.user.shouldUseSecureStaging}
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 || false}
isOn={props.network.shouldFailAllRequests}
onToggle={() => Network.setShouldFailAllRequests(!props.network.shouldFailAllRequests)}
/>
</TestToolRow>
Expand Down

0 comments on commit 3f6178c

Please sign in to comment.