Remove default value from openDisplayNamePrompt action
This commit is contained in:
committed by
Saúl Ibarra Corretgé
parent
c203a452f7
commit
4bddae0bdb
+1
-1
@@ -670,7 +670,7 @@ UI.handleLastNEndpoints = function(leavingIds, enteringIds) {
|
||||
* Prompt user for nickname.
|
||||
*/
|
||||
UI.promptDisplayName = () => {
|
||||
APP.store.dispatch(openDisplayNamePrompt());
|
||||
APP.store.dispatch(openDisplayNamePrompt(undefined));
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -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
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user