Skip to content

Commit 826008e

Browse files
committed
Added change from PR comment for additional ppe check and retrieval
1 parent 9a5def7 commit 826008e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/models/EquipmentExposure.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,13 @@ export class EquipmentExposure extends BaseModel implements Partial<JsonApiMappi
7979
}
8080
}
8181

82+
if (data?.ppe) {
83+
const ppeData = data.ppe;
84+
85+
this.ppe = {
86+
mask: ppeData?.mask ?? false,
87+
ear_defenders: ppeData?.ear_defenders ?? false
88+
}
89+
}
8290
}
8391
}

0 commit comments

Comments
 (0)