@dharmax/state-router 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/state-manager.js +1 -1
- package/package.json +1 -1
package/dist/state-manager.js
CHANGED
|
@@ -57,7 +57,7 @@ export class StateManager {
|
|
|
57
57
|
}
|
|
58
58
|
// check if the state change was declined by any change authority and if so - don't do it and return false
|
|
59
59
|
const changeConfirmations = await Promise.all(this.changeAuthorities.map(a => a(newState)));
|
|
60
|
-
if (changeConfirmations.
|
|
60
|
+
if (changeConfirmations.includes(false))
|
|
61
61
|
return false;
|
|
62
62
|
// perform the change
|
|
63
63
|
this.previousState = this.appState;
|