From e048267a10fb327217434b969cc502f7321c9710 Mon Sep 17 00:00:00 2001 From: Michael Peters Date: Sat, 4 Dec 2021 06:08:28 -0600 Subject: [PATCH] fix display name not showing in personalize --- client/webapp/elements/overlay-personalize.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/webapp/elements/overlay-personalize.ts b/client/webapp/elements/overlay-personalize.ts index 72824c6..7f75f48 100644 --- a/client/webapp/elements/overlay-personalize.ts +++ b/client/webapp/elements/overlay-personalize.ts @@ -11,13 +11,14 @@ import Globals from '../globals'; import Q from '../q-module'; import createTextMessage from './msg-txt'; import CombinedGuild from '../guild-combined'; +import { ConnectionInfo } from '../data-types'; -export default function createPersonalizeOverlay(document: Document, q: Q, guild: CombinedGuild, connection: any): HTMLElement { +export default function createPersonalizeOverlay(document: Document, q: Q, guild: CombinedGuild, connection: ConnectionInfo): HTMLElement { let element = BaseElements.createOverlay(document, { class: 'content submit-dialog personalize', content: [ createTextMessage(q, guild, { id: 'test-message', member: connection, sent: new Date(), text: 'Example Message' }), { class: 'text-input', placeholder: 'New Display Name', - spellcheck: 'false', contenteditable: 'plaintext-only', content: connection.display_name }, + spellcheck: 'false', contenteditable: 'plaintext-only', content: connection.displayName }, { class: 'image-input avatar-input', content: [ { tag: 'label', class: 'image-input-label avatar-input-label button', content: [ 'Select New Avatar',