MOBILE-2768 policy: Fix archived policy displayed after login

main
Dani Palou 2024-03-28 11:15:24 +01:00
parent 5215ff91e5
commit f184f69def
1 changed files with 4 additions and 0 deletions

View File

@ -102,6 +102,10 @@ export class CorePolicyService {
for (const i in policies) {
const policy = policies[i];
if (policy.status !== CorePolicyStatus.Active) {
continue;
}
const hasAccepted = policy.acceptance?.status === 1;
const hasDeclined = policy.acceptance?.status === 0;