Skip to content

Commit

Permalink
fix(admin-ui): allow user to login page on emtpy stat results #1356
Browse files Browse the repository at this point in the history
Signed-off-by: Jeet Viramgama <jviramgama5@gmail.com>
  • Loading branch information
jv18creator committed Oct 2, 2023
1 parent 12790c5 commit a854b70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin-ui/app/redux/sagas/LicenseSaga.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ function* checkMauThreshold(mau_threshold) {
try {
const data = yield call(mauApi.getMau, { month: getYearMonth(new Date()) })
const limit = (mau_threshold * 15) / 100 + mau_threshold
if(limit > data?.[0]?.monthly_active_users) {
if((limit > data?.[0]?.monthly_active_users) || data?.length === 0) {
// under MAU limit
yield put(
checkLicensePresentResponse({
Expand Down

0 comments on commit a854b70

Please sign in to comment.