diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-08-31 17:41:31 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-08-31 17:41:31 +0200 |
commit | 68aa1e9ece96ced961a03a4f3e72d2c354386d60 (patch) | |
tree | fc4b597a37927568c76cec3cafa799fc92a45929 /src/webex/pages | |
parent | c35b3be7957a90bd1e861c0502736aa1eb7acfbf (diff) | |
download | wallet-core-68aa1e9ece96ced961a03a4f3e72d2c354386d60.tar.xz |
don't always re-run effect
Diffstat (limited to 'src/webex/pages')
-rw-r--r-- | src/webex/pages/pay.tsx | 2 | ||||
-rw-r--r-- | src/webex/pages/refund.tsx | 2 |
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"); |