Remove default value from openDisplayNamePrompt action

This commit is contained in:
Bettenbuk Zoltan 2019-01-15 12:26:54 +01:00 committed by Saúl Ibarra Corretgé
parent c203a452f7
commit 4bddae0bdb
2 changed files with 2 additions and 2 deletions

View File

@ -670,7 +670,7 @@ UI.handleLastNEndpoints = function(leavingIds, enteringIds) {
* Prompt user for nickname.
*/
UI.promptDisplayName = () => {
APP.store.dispatch(openDisplayNamePrompt());
APP.store.dispatch(openDisplayNamePrompt(undefined));
};
/**

View File

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