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]' );