Skip to content

Commit

Permalink
fix(admin-ui): display error message if license activation fails
Browse files Browse the repository at this point in the history
  • Loading branch information
jv18creator committed Aug 18, 2023
1 parent c68a272 commit d2f3e7f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions admin-ui/app/redux/sagas/LicenseSaga.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ function* retrieveLicenseKey() {
yield* checkMauThreshold(parseInt(mauThreshold?.value))
} catch (error) {
console.log(error)
yield put(setLicenseError(error.responseMessage || error.message))
yield put(
retrieveLicenseKeyResponse({ isNoValidLicenseKeyFound: true })
)
Expand All @@ -96,6 +97,7 @@ function* retrieveLicenseKey() {
}
} catch (error) {
console.log('Error in generating key.', error)
yield put(setLicenseError(error.responseMessage || error.message))
yield put(retrieveLicenseKeyResponse({ isNoValidLicenseKeyFound: true }))
yield put(checkLicensePresentResponse({ isLicenseValid: false }))
yield put(generateTrialLicenseResponse(null))
Expand Down

0 comments on commit d2f3e7f

Please sign in to comment.