Skip to content
This repository has been archived by the owner on Jun 27, 2019. It is now read-only.

Commit

Permalink
Use String() to account for null values
Browse files Browse the repository at this point in the history
  • Loading branch information
roschaefer committed Sep 20, 2018
1 parent 95d7ac5 commit 89f3db6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/hooks/conceal-blacklisted-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const defaults = {
const handleItem = options => item => {
if (options.blacklist){
let found = options.blacklist.find((userId) => {
return userId.toString() === item.userId;
return String(userId) === item.userId;
});
if (found){
item = {...item, ...options.data};
Expand Down

0 comments on commit 89f3db6

Please # to comment.