fix: Call hasUserKeys() on user argument (#1295)
This commit is contained in:
@@ -50,7 +50,7 @@ const runSDK = ({ baseUrl, websiteToken }) => {
|
|||||||
throw new Error('Identifier should be a string or a number');
|
throw new Error('Identifier should be a string or a number');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!hasUserKeys()) {
|
if (!hasUserKeys(user)) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
'User object should have one of the keys [avatar_url, email, name]'
|
'User object should have one of the keys [avatar_url, email, name]'
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user