Skip to content

Commit

Permalink
fix(core): Fix validation of fulfillment state config
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed Nov 15, 2023
1 parent b3e832e commit cb13de4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export class FulfillmentStateMachine {
{} as Transitions<FulfillmentState>,
);

const validationResult = validateTransitionDefinition(allTransitions, 'Pending');
const validationResult = validateTransitionDefinition(allTransitions, this.initialState);
if (!validationResult.valid && validationResult.error) {
Logger.error(`The fulfillment process has an invalid configuration:`);
throw new Error(validationResult.error);
Expand Down

0 comments on commit cb13de4

Please sign in to comment.