Skip to content

Commit

Permalink
Merge branch 'sw-set-server-bundle-for-react-native-OKTA-289380' of g…
Browse files Browse the repository at this point in the history
…ithub.com:okta/okta-auth-js into sw-set-server-bundle-for-react-native-OKTA-289380
  • Loading branch information
shuowu committed Apr 17, 2020
2 parents 7c7a179 + 68bbf34 commit f483cf7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/app/src/testApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ Object.assign(TestApp.prototype, {
});
},
renderError: function(e) {
const xhrError = e && e.xhr ? e.xhr.message : '';
const xhrError = e && e.xhr ? (e.xhr.message || 'Network request failed') : '';
this._setContent(`
<div id="error" style="color: red">${e.toString()}</div>
<div id="xhr-error" style="color: red">${xhrError}</div>
Expand Down Expand Up @@ -344,7 +344,7 @@ Object.assign(TestApp.prototype, {
${ tokensHTML({idToken, accessToken})}
`;
}

// Unauthenticated user, Login page
return `
<strong>Greetings, unknown user!</strong>
Expand Down

0 comments on commit f483cf7

Please sign in to comment.