aboutsummaryrefslogtreecommitdiff
path: root/src/components/follow.js
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2017-10-04 22:01:16 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2017-10-04 22:01:16 +0900
commit79a4a805f6be14572b4486ddb79b0ebb98e37690 (patch)
tree839dea5d9ed0654693c307c72dc3c75ebbe12a86 /src/components/follow.js
parent6594841b1d1f082107bdb1489f02d3c99cff8ffa (diff)
single reducer
Diffstat (limited to 'src/components/follow.js')
-rw-r--r--src/components/follow.js2
1 files changed, 1 insertions, 1 deletions
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) {