diff --git a/app/components/forms/wizard/other-details-step.js b/app/components/forms/wizard/other-details-step.js index 499d6ab20bc..576a736eac1 100644 --- a/app/components/forms/wizard/other-details-step.js +++ b/app/components/forms/wizard/other-details-step.js @@ -14,8 +14,8 @@ export default Component.extend(FormMixin, EventWizardMixin, { currentTimezone : moment.tz.guess(), timezones, - site: 'twitter', - testLink : 'https://twitter.com/iamareebjamal', + site : 'twitter', + testLink : 'https://twitter.com/iamareebjamal', torii: service(), diff --git a/app/components/widgets/forms/social-link-field.ts b/app/components/widgets/forms/social-link-field.ts index a15bc6739e8..35123a4f8ae 100644 --- a/app/components/widgets/forms/social-link-field.ts +++ b/app/components/widgets/forms/social-link-field.ts @@ -8,16 +8,16 @@ interface Args { export default class SocialLinkField extends Component { @tracked - site: string = 'website'; + site = 'website'; get sites(): SocialMedia[] { return [ { - name: 'Website', - identifier: 'website' + name : 'Website', + identifier : 'website' }, ...socialMediaSites - ] + ]; } get prefix(): string | undefined { diff --git a/app/controllers/register.js b/app/controllers/register.js index 7a071a7b713..2bea5c8372f 100644 --- a/app/controllers/register.js +++ b/app/controllers/register.js @@ -22,7 +22,7 @@ export default class RegisterController extends Controller { this.model.save() .then(user => { this.set('session.newUser', user.get('email')); - this.send('loginExistingUser', user.get('email'), password, this.inviteToken, this.event); + this.send('loginExistingUser', user.get('email'), password, this.inviteToken, this.event); }) .catch(reason => { if (reason && Object.prototype.hasOwnProperty.call(reason, 'errors') && reason.errors[0].status === 409) { diff --git a/app/utils/dictionary/social-media.ts b/app/utils/dictionary/social-media.ts index 2ca923ff0ec..008b2fb2f00 100644 --- a/app/utils/dictionary/social-media.ts +++ b/app/utils/dictionary/social-media.ts @@ -2,10 +2,10 @@ export const socialMediaNames = ['Twitter', 'Facebook', 'Instagram', 'Linkedin', const identifierOverrides: { [key: string]: string } = { 'Google Groups': 'groups.google' -} +}; export const socialMediaIdentifiers = socialMediaNames.map(name => { - return identifierOverrides[name] ?? name.toLowerCase() + return identifierOverrides[name] ?? name.toLowerCase(); }); const prefixOverrides: { [key: string]: string } = {}; @@ -18,13 +18,13 @@ export interface SocialMedia { export const socialMediaSites: SocialMedia[] = socialMediaIdentifiers.map((identifier, index) => ({ identifier, - name: socialMediaNames[index], - prefix: prefixOverrides[identifier] ?? `https://${identifier}.com/` + name : socialMediaNames[index], + prefix : prefixOverrides[identifier] ?? `https://${identifier}.com/` })); export interface SocialMediaMap { [key: string]: SocialMedia } export const socialMediaMap: SocialMediaMap = socialMediaIdentifiers.reduce((obj: SocialMediaMap, identifier, index) => { obj[identifier] = socialMediaSites[index]; - return obj + return obj; }, {});