Skip to content

Commit 3d3ed1c

Browse files
author
AliAbdelfattah
authored
Merge pull request #367 from Instabug/fix/set-user-attribute-empty-string
🐛 Allow empty string to be passed to setUserAttribute value
2 parents 716ed11 + 843caba commit 3d3ed1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ const InstabugModule = {
475475
* @param value the value
476476
*/
477477
setUserAttribute(key, value) {
478-
if (!key || !value || typeof key !== 'string' || typeof value !== 'string')
478+
if (!key || typeof key !== 'string' || typeof value !== 'string')
479479
throw new TypeError('Invalid param, Expected String');
480480
Instabug.setUserAttribute(key, value);
481481
},

0 commit comments

Comments
 (0)