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/completion.js | 2 +- src/components/follow.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/components') diff --git a/src/components/completion.js b/src/components/completion.js index 489061c..d1fdd06 100644 --- a/src/components/completion.js +++ b/src/components/completion.js @@ -6,7 +6,7 @@ export default class Completion { } update() { - let state = this.store.getState(); + let state = this.store.getState().completion; if (JSON.stringify(this.prevState) === JSON.stringify(state)) { return; } 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