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