Skip to content

Commit

Permalink
Feat: Only update streaming payment metadata changelog if end conditi…
Browse files Browse the repository at this point in the history
…on changes via motion
  • Loading branch information
iamsamgibbs authored and jakubcolony committed Aug 29, 2024
1 parent 65490a5 commit dd43a8f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/handlers/motions/motionFinalized/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,14 @@ export const linkPendingStreamingPaymentMetadata = async ({
return;
}

const hasEndConditionChanged =
currentStreamingPaymentMetadata.endCondition !==
pendingStreamingPaymentMetadata.endCondition;

if (!hasEndConditionChanged) {
return;
}

await mutate<
UpdateStreamingPaymentMetadataMutation,
UpdateStreamingPaymentMetadataMutationVariables
Expand Down

0 comments on commit dd43a8f

Please sign in to comment.