Merge pull request 'missed Function' (#131) from enhancement/entryandquickadd into main
Reviewed-on: Pozomind/pozo-retail-app#131
This commit is contained in:
commit
f798cb2f15
|
|
@ -53,7 +53,7 @@ const useSubscriptionManager = (sessionData, logout) => {
|
|||
try {
|
||||
|
||||
const UserId = getSession('UserId');
|
||||
const AppId = getSession('UserId')
|
||||
const AppId = getSession('AppId')
|
||||
// Current date
|
||||
const now = new Date();
|
||||
const currentDate = formatDate(now);
|
||||
|
|
@ -138,9 +138,23 @@ const useSubscriptionManager = (sessionData, logout) => {
|
|||
expData.RemainingSeconds < 1 &&
|
||||
UserType !== 'Super Admin'
|
||||
) {
|
||||
|
||||
if (
|
||||
(UserType !== 'Super Admin' ||
|
||||
UserType !== 'Super Admin User') && (expData?.PlanType?.toLowerCase() == "extend expired")
|
||||
) {
|
||||
console.log('Subscription expired, logging out...');
|
||||
alert('Subscription expired');
|
||||
logout();
|
||||
}
|
||||
else if (
|
||||
(UserType !== 'Super Admin' ||
|
||||
UserType !== 'Super Admin User') && (expData?.PlanType?.toLowerCase() == "plan expired")
|
||||
) {
|
||||
setExtendModel(true)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue