Skip to content

Commit

Permalink
Merge pull request #367 from Instabug/fix/set-user-attribute-empty-st…
Browse files Browse the repository at this point in the history
…ring

🐛 Allow empty string to be passed to setUserAttribute value
  • Loading branch information
AliAbdelfattah authored Aug 21, 2019
2 parents 716ed11 + 843caba commit 3d3ed1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ const InstabugModule = {
* @param value the value
*/
setUserAttribute(key, value) {
if (!key || !value || typeof key !== 'string' || typeof value !== 'string')
if (!key || typeof key !== 'string' || typeof value !== 'string')
throw new TypeError('Invalid param, Expected String');
Instabug.setUserAttribute(key, value);
},
Expand Down

0 comments on commit 3d3ed1c

Please sign in to comment.