Skip to content

Commit

Permalink
Fixed issue #45. Added check isClient for default middleware (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
dipiash authored Jul 9, 2020
1 parent 72b5b38 commit d6d9937
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stateMachine.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ let getName: GetStoreName;
let middleWaresArray: Function[] | undefined = [];

export const middleWare = (data: string = '') => {
if (data) {
if (data && isClient) {
// @ts-ignore
window[STORE_ACTION_NAME] = data;
}
Expand Down

0 comments on commit d6d9937

Please sign in to comment.