Fix okta login (#2107)

* Fix okta login

* Feedback review
This commit is contained in:
Elias Nahum 2018-09-12 14:46:07 -03:00 committed by GitHub
parent 6dc02cb56a
commit 068e0674a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -235,7 +235,7 @@ class SSO extends PureComponent {
onNavigationStateChange={this.onNavigationStateChange}
onShouldStartLoadWithRequest={() => true}
renderLoading={this.renderLoading}
onMessage={this.onMessage}
onMessage={jsCode ? this.onMessage : null}
injectedJavaScript={jsCode}
onLoadEnd={this.onLoadEnd}
/>