From f61b731fb39aab006a41522f5195a1eed20ac6eb Mon Sep 17 00:00:00 2001 From: Jonathan Como Date: Thu, 1 Oct 2020 21:47:12 -0700 Subject: [PATCH] fix: Call hasUserKeys() on user argument (#1295) --- app/javascript/packs/sdk.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/packs/sdk.js b/app/javascript/packs/sdk.js index 08be2bacf..b1584a5fa 100755 --- a/app/javascript/packs/sdk.js +++ b/app/javascript/packs/sdk.js @@ -50,7 +50,7 @@ const runSDK = ({ baseUrl, websiteToken }) => { throw new Error('Identifier should be a string or a number'); } - if (!hasUserKeys()) { + if (!hasUserKeys(user)) { throw new Error( 'User object should have one of the keys [avatar_url, email, name]' );