Fixed MATTERMOST-MOBILE-ANDROID-87 (#1566)

This commit is contained in:
Harrison Healey
2018-04-02 16:02:42 -04:00
committed by Elias Nahum
parent 868e4b8ad6
commit f5bd4bd752

View File

@@ -13,7 +13,7 @@ import {ViewTypes} from 'app/constants';
function displayName(state = '', action) {
switch (action.type) {
case ViewTypes.SET_CHANNEL_DISPLAY_NAME:
return action.displayName;
return action.displayName || '';
default:
return state;
}