fix(core-flows,workflows-sdk): compensate account holders only when its created (#12825)

* fix(core-flows,workflows-sdk): compensate account holders only when its created

* chore: remove only
This commit is contained in:
Riqwan Thamir
2025-06-26 12:30:08 +02:00
committed by GitHub
parent 10dff3e266
commit 9a62f359f1
5 changed files with 166 additions and 21 deletions
@@ -38,7 +38,9 @@ export class StepResponse<TOutput, TCompensateInput = TOutput> {
if (isDefined(output)) {
this.#output = output
}
this.#compensateInput = (compensateInput ?? output) as TCompensateInput
this.#compensateInput = (
isDefined(compensateInput) ? compensateInput : output
) as TCompensateInput
}
/**