Fix back on DrawerRouter

This commit is contained in:
Brent Vatne
2018-06-20 13:35:54 -07:00
parent adcf274ba4
commit 54bea435a8

View File

@@ -2,7 +2,7 @@ import { SwitchRouter } from 'react-navigation';
import DrawerActions from './DrawerActions';
function withDefaultValue(obj, key, defaultValue) {
if (obj.hasOwnProperty(key)) {
if (obj.hasOwnProperty(key) && typeof obj[key] !== 'undefined') {
return obj;
}