fix(misc) fix typeof comparison to undefined
This commit is contained in:
parent
6b496d4def
commit
d6b5687828
|
@ -170,7 +170,7 @@ function parseArguments(args) {
|
|||
|
||||
switch (typeof firstArg) {
|
||||
case 'string': // old arguments format
|
||||
case undefined: {
|
||||
case 'undefined': {
|
||||
// Not sure which format but we are trying to parse the old
|
||||
// format because if the new format is used everything will be undefined
|
||||
// anyway.
|
||||
|
|
|
@ -98,7 +98,7 @@ function _appWillMount({ dispatch, getState }) {
|
|||
|
||||
switch (command) {
|
||||
case CMD_HANG_UP:
|
||||
if (typeof getCurrentConferenceUrl(getState()) !== undefined) {
|
||||
if (typeof getCurrentConferenceUrl(getState()) !== 'undefined') {
|
||||
dispatch(appNavigate(undefined));
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue