We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d43ec68 commit 5742b1fCopy full SHA for 5742b1f
src/redux/sagas/expenditures/editStreamingPayment.ts
@@ -111,7 +111,11 @@ function* editStreamingPaymentAction({
111
} = yield waitForTxResult(txChannel);
112
113
if (type === ActionTypes.TRANSACTION_SUCCEEDED) {
114
- if (streamingPayment.metadata) {
+ const hasEndConditionChanged =
115
+ endCondition !== undefined &&
116
+ endCondition !== streamingPayment.metadata?.endCondition;
117
+
118
+ if (hasEndConditionChanged && streamingPayment.metadata) {
119
yield apolloClient.mutate<
120
UpdateStreamingPaymentMetadataMutation,
121
UpdateStreamingPaymentMetadataMutationVariables
0 commit comments