Skip to content

Commit

Permalink
test (analytics/value): update test
Browse files Browse the repository at this point in the history
  • Loading branch information
AlasDiablo committed Dec 15, 2023
1 parent c838dfd commit a2b91d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/analytics/src/value.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ export default function value(data, feed) {
const val = fields
.filter((k) => typeof k === 'string')
.map((key) => get(data, key))
.filter((x) => x)
// eslint-disable-next-line no-unexpected-multiline
[0];
.filter((x) => x !== undefined)
.filter((x) => x !== null)[0];

feed.send(val);
}

0 comments on commit a2b91d2

Please sign in to comment.