Skip to content

Commit 843caba

Browse files
🐛 Allow empty string to be passed to setUserAttribute second param value.
1 parent 7d78e95 commit 843caba

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)