Skip to content

Commit dd43a8f

Browse files
iamsamgibbsjakubcolony
authored andcommitted
Feat: Only update streaming payment metadata changelog if end condition changes via motion
1 parent 65490a5 commit dd43a8f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/handlers/motions/motionFinalized/helpers.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,14 @@ export const linkPendingStreamingPaymentMetadata = async ({
478478
return;
479479
}
480480

481+
const hasEndConditionChanged =
482+
currentStreamingPaymentMetadata.endCondition !==
483+
pendingStreamingPaymentMetadata.endCondition;
484+
485+
if (!hasEndConditionChanged) {
486+
return;
487+
}
488+
481489
await mutate<
482490
UpdateStreamingPaymentMetadataMutation,
483491
UpdateStreamingPaymentMetadataMutationVariables

0 commit comments

Comments
 (0)