Skip to content

Commit f5bd96b

Browse files
fix(StateRegistry): Fix error message: State '' is already defined
- Use state.name in message
1 parent fdccb5d commit f5bd96b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/state/stateQueueManager.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export class StateQueueManager {
5656

5757
if (result) {
5858
if (states.hasOwnProperty(state.name))
59-
throw new Error(`State '${name}' is already defined`);
59+
throw new Error(`State '${state.name}' is already defined`);
6060
states[state.name] = state;
6161
this.attachRoute($state, state);
6262
if (orphanIdx >= 0) orphans.splice(orphanIdx, 1);

0 commit comments

Comments
 (0)