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 });