From 4bddae0bdbde2763f464a1e61cc36c063c3b8f4d Mon Sep 17 00:00:00 2001 From: Bettenbuk Zoltan Date: Tue, 15 Jan 2019 12:26:54 +0100 Subject: [PATCH] Remove default value from openDisplayNamePrompt action --- modules/UI/UI.js | 2 +- react/features/display-name/actions.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/UI/UI.js b/modules/UI/UI.js index eb26c627f..e37021f6f 100644 --- a/modules/UI/UI.js +++ b/modules/UI/UI.js @@ -670,7 +670,7 @@ UI.handleLastNEndpoints = function(leavingIds, enteringIds) { * Prompt user for nickname. */ UI.promptDisplayName = () => { - APP.store.dispatch(openDisplayNamePrompt()); + APP.store.dispatch(openDisplayNamePrompt(undefined)); }; /** diff --git a/react/features/display-name/actions.js b/react/features/display-name/actions.js index 536dd007e..771a2be6a 100644 --- a/react/features/display-name/actions.js +++ b/react/features/display-name/actions.js @@ -11,7 +11,7 @@ import { DisplayNamePrompt } from './components'; * submit of the dialog. * @returns {Object} */ -export function openDisplayNamePrompt(onPostSubmit: ?Function = undefined) { +export function openDisplayNamePrompt(onPostSubmit: ?Function) { return openDialog(DisplayNamePrompt, { onPostSubmit });