feat(jotform): prettify screen name
This commit is contained in:
@@ -3,10 +3,8 @@ import getCurrentUser from '../common/get-current-user.js';
|
|||||||
const verifyCredentials = async ($) => {
|
const verifyCredentials = async ($) => {
|
||||||
const user = await getCurrentUser($);
|
const user = await getCurrentUser($);
|
||||||
|
|
||||||
const screenName = [user.username, user.email].filter(Boolean).join(' @ ');
|
|
||||||
|
|
||||||
await $.auth.set({
|
await $.auth.set({
|
||||||
screenName,
|
screenName: user.name,
|
||||||
apiKey: $.auth.data.apiKey,
|
apiKey: $.auth.data.apiKey,
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user