Merge pull request #701 from esteemapp/bugfix/default-footer

Fixed default footer error
This commit is contained in:
uğur erdal 2019-03-18 19:36:43 +03:00 committed by GitHub
commit e514106273

View File

@ -67,6 +67,7 @@ import {
setLanguage,
setUpvotePercent,
setNsfw,
isDefaultFooter,
} from '../../../redux/actions/applicationActions';
// Container
@ -248,7 +249,7 @@ class ApplicationContainer extends Component {
if (response.language !== '') dispatch(setLanguage(response.language));
if (response.server !== '') dispatch(setApi(response.server));
if (response.upvotePercent !== '') dispatch(setUpvotePercent(Number(response.upvotePercent)));
if (response.isDefaultFooter !== '') dispatch(setDefaultFooter(response.isDefaultFooter));
if (response.isDefaultFooter !== '') dispatch(isDefaultFooter(response.isDefaultFooter));
if (response.notification !== '') {
dispatch(isNotificationOpen(response.notification));
Push.setEnabled(response.notification);