aboutsummaryrefslogtreecommitdiff
path: root/src/webex
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-08-31 17:41:31 +0200
committerFlorian Dold <florian.dold@gmail.com>2019-08-31 17:41:31 +0200
commit68aa1e9ece96ced961a03a4f3e72d2c354386d60 (patch)
treefc4b597a37927568c76cec3cafa799fc92a45929 /src/webex
parentc35b3be7957a90bd1e861c0502736aa1eb7acfbf (diff)
downloadwallet-core-68aa1e9ece96ced961a03a4f3e72d2c354386d60.tar.xz
don't always re-run effect
Diffstat (limited to 'src/webex')
-rw-r--r--src/webex/pages/pay.tsx2
-rw-r--r--src/webex/pages/refund.tsx2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/webex/pages/pay.tsx b/src/webex/pages/pay.tsx
index 1561dd95f..95d12b69a 100644
--- a/src/webex/pages/pay.tsx
+++ b/src/webex/pages/pay.tsx
@@ -53,7 +53,7 @@ function TalerPayDialog({ talerPayUri }: { talerPayUri: string }) {
setPayStatus(p);
};
doFetch();
- });
+ }, [numTries]);
if (!payStatus) {
return <span>Loading payment information ...</span>;
diff --git a/src/webex/pages/refund.tsx b/src/webex/pages/refund.tsx
index 9a7828edb..79cadcdc9 100644
--- a/src/webex/pages/refund.tsx
+++ b/src/webex/pages/refund.tsx
@@ -49,7 +49,7 @@ function RefundStatusView(props: { talerRefundUri: string }) {
}
};
doFetch();
- });
+ }, []);
console.log("rendering");