diff --git a/src/usecase/Root.tsx b/src/usecase/Root.tsx index 6f20fa3..aed1cb3 100644 --- a/src/usecase/Root.tsx +++ b/src/usecase/Root.tsx @@ -39,7 +39,7 @@ export default class WeechatNative extends React.Component { super(props); store.dispatch( addListener({ - predicate: (action) => upgradeAction.match(action), + actionCreator: upgradeAction, effect: () => { this.disconnect(); }