Skip to content

Commit

Permalink
Handle the inactivity error. I will
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-bizz committed Feb 12, 2025
1 parent 3408628 commit bf11cdb
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/common/components/signUpModal/signUpModal.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -425,10 +425,9 @@ class SignUpModalController {
// The user then has to click "back to sign in," to rerender the Okta widget.
// To avoid the error showing, we check if the context formName is 'terminal'. If it is, we know there was an error,
// and we re-render the widget to refresh the widget.
// We also set a flag to prevent the widget from refreshing multiple times.
if (context.formName === 'terminal' && !this.refreshedDueToInactivity) {
this.refreshedDueToInactivity = true
if (context.formName === 'terminal') {
this.reRenderWidget()
return
}

this.updateSignUpButtonText()
Expand All @@ -446,7 +445,7 @@ class SignUpModalController {
}
}

ready (context) {
ready () {
this.$scope.$apply(() => {
this.isLoading = false
})
Expand Down

0 comments on commit bf11cdb

Please sign in to comment.