Update client/src/components/layouts/components/guide/redux/side-navigation-saga.js

Co-Authored-By: ahmadabdolsaheb <ahmad.abdolsaheb@gmail.com>
This commit is contained in:
Stuart Taylor
2019-03-01 15:26:10 +03:00
parent 23b01464ac
commit 2c8431fdc3

View File

@ -3,7 +3,7 @@ import { takeEvery, put, all } from 'redux-saga/effects';
import { toggleExpandedState } from './';
import { types as appTypes } from '../../../../../redux';
function* showDonateModalSaga() {
function* expandSideNavOnMountSaga() {
let guideRegex = /^\/guide\//;
let onGuide = guideRegex.test(window.location.pathname);
if (onGuide && typeof window !== 'undefined') {