diff --git a/src/components/views/dialogs/HostSignupDialog.tsx b/src/components/views/dialogs/HostSignupDialog.tsx index 7a7dfaa2de..1feec1857c 100644 --- a/src/components/views/dialogs/HostSignupDialog.tsx +++ b/src/components/views/dialogs/HostSignupDialog.tsx @@ -64,10 +64,14 @@ export default class HostSignupDialog extends React.PureComponent { - if (this.state.minimized) { - this.setState({ - minimized: false, - }); - } + this.setState({ + minimized: false, + }); + // Send this action to the iframe so it can act accordingly + this.sendMessage({ + action: PostmessageAction.Maximize, + }); } private minimizeDialog = () => { this.setState({ minimized: true, }); + // Send this action to the iframe so it can act accordingly + this.sendMessage({ + action: PostmessageAction.Minimize, + }); } private closeDialog = async () => { diff --git a/src/components/views/dialogs/HostSignupDialogTypes.ts b/src/components/views/dialogs/HostSignupDialogTypes.ts index 94a4f5e2f6..e1d51a3906 100644 --- a/src/components/views/dialogs/HostSignupDialogTypes.ts +++ b/src/components/views/dialogs/HostSignupDialogTypes.ts @@ -38,7 +38,7 @@ export interface IPostmessageRequestData { export interface IPostmessageResponseData { action: PostmessageAction; - account: IAccountData; + account?: IAccountData; } export interface IPostmessage {