Skip to content

Commit 20317ba

Browse files
author
Kelly Wallach
committed
fix(session replay plugin): remove unused if check
1 parent cea0ef2 commit 20317ba

File tree

1 file changed

+1
-4
lines changed
  • packages/plugin-session-replay-browser/src

1 file changed

+1
-4
lines changed

packages/plugin-session-replay-browser/src/helpers.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@ export const parseUserProperties = (event: Event) => {
99
const userPropertyKeys = Object.keys(event.user_properties);
1010

1111
userPropertyKeys.forEach((identifyKey) => {
12-
if (
13-
Object.values(IdentifyOperation).includes(identifyKey as IdentifyOperation) &&
14-
PROPERTY_ADD_OPERATIONS.includes(identifyKey as IdentifyOperation)
15-
) {
12+
if (PROPERTY_ADD_OPERATIONS.includes(identifyKey as IdentifyOperation)) {
1613
const typedUserPropertiesOperation =
1714
event.user_properties && (event.user_properties[identifyKey as IdentifyOperation] as Record<string, any>);
1815
userPropertiesObj = {

0 commit comments

Comments
 (0)