From 79a4a805f6be14572b4486ddb79b0ebb98e37690 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Wed, 4 Oct 2017 22:01:16 +0900 Subject: single reducer --- src/components/follow.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/components/follow.js') diff --git a/src/components/follow.js b/src/components/follow.js index 4fe4c58..d2d3902 100644 --- a/src/components/follow.js +++ b/src/components/follow.js @@ -44,7 +44,7 @@ export default class FollowComponent { update() { let prevState = this.state; - this.state = this.store.getState(); + this.state = this.store.getState().follow; if (!prevState.enabled && this.state.enabled) { this.create(); } else if (prevState.enabled && !this.state.enabled) { -- cgit v1.2.3