From 843caba59c07bec96afc2ab12f3c9349ac4a748c Mon Sep 17 00:00:00 2001 From: Ali Abdelfattah Date: Wed, 21 Aug 2019 14:35:18 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Allow=20empty=20string=20to=20be?= =?UTF-8?q?=20passed=20to=20setUserAttribute=20second=20param=20`value`.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 5fd7d662f..228a1be48 100644 --- a/index.js +++ b/index.js @@ -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); },