Преглед на файлове

Remove default value from openDisplayNamePrompt action

j8
Bettenbuk Zoltan преди 6 години
родител
ревизия
4bddae0bdb
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 1
    1
      modules/UI/UI.js
  2. 1
    1
      react/features/display-name/actions.js

+ 1
- 1
modules/UI/UI.js Целия файл

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

+ 1
- 1
react/features/display-name/actions.js Целия файл

@@ -11,7 +11,7 @@ import { DisplayNamePrompt } from './components';
11 11
  * submit of the dialog.
12 12
  * @returns {Object}
13 13
  */
14
-export function openDisplayNamePrompt(onPostSubmit: ?Function = undefined) {
14
+export function openDisplayNamePrompt(onPostSubmit: ?Function) {
15 15
     return openDialog(DisplayNamePrompt, {
16 16
         onPostSubmit
17 17
     });

Loading…
Отказ
Запис