Commit 4e996acc authored by Janka Uryga's avatar Janka Uryga

fix flipped conditional for a single "block: reject"

parent 44304092
...@@ -97,7 +97,7 @@ export function createRouterAct( ...@@ -97,7 +97,7 @@ export function createRouterAct(
'`act` scope.' '`act` scope.'
throw error throw error
} }
if (config.block !== 'reject') { if (config.block === 'reject') {
expectedResponses = [config] expectedResponses = [config]
} else { } else {
expectedResponses = [] expectedResponses = []
...@@ -111,7 +111,7 @@ export function createRouterAct( ...@@ -111,7 +111,7 @@ export function createRouterAct(
'`act` scope.' '`act` scope.'
throw error throw error
} }
if (item.block !== 'reject') { if (item.block === 'reject') {
expectedResponses.push(item) expectedResponses.push(item)
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment