From 18aeeef6feaf7759382d9b697569a7a3aa2b4c5b Mon Sep 17 00:00:00 2001 From: Matt Gibson Date: Thu, 29 Jul 2021 10:38:35 -0500 Subject: [PATCH] Use `!=` for null checks (#1105) --- src/app/services/event.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/services/event.service.ts b/src/app/services/event.service.ts index 319e25f577..b81de80fc3 100644 --- a/src/app/services/event.service.ts +++ b/src/app/services/event.service.ts @@ -222,7 +222,7 @@ export class EventService { const policies = await this.policyService.getAll(); const policy = policies.filter(p => p.id === ev.policyId)[0]; let p1 = this.getShortId(ev.policyId); - if (policy !== null) { + if (policy != null) { p1 = PolicyType[policy.type]; }