Skip to content

Commit

Permalink
fix(action): fixed duplicate action name in abort error message
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewcourtice committed Nov 18, 2022
1 parent fb45370 commit 5fa08cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/action/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export default function actionsExtension<TState extends BaseState>(options?: Par

return ((payload: TPayload, controller?: AbortController) => {
if (!concurrent || (typeIsFunction(concurrent) && !concurrent(payload, getPayloads()))) {
abortAction(name, `New instance started on non-concurrent action: ${name}`);
abortAction(name, 'New instance started on non-concurrent action');
}

if (autoClearErrors) {
Expand Down

0 comments on commit 5fa08cc

Please sign in to comment.