don't always re-run effect

This commit is contained in:
Florian Dold 2019-08-31 17:41:31 +02:00
parent c35b3be795
commit 68aa1e9ece
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ function TalerPayDialog({ talerPayUri }: { talerPayUri: string }) {
setPayStatus(p);
};
doFetch();
});
}, [numTries]);
if (!payStatus) {
return <span>Loading payment information ...</span>;

View File

@ -49,7 +49,7 @@ function RefundStatusView(props: { talerRefundUri: string }) {
}
};
doFetch();
});
}, []);
console.log("rendering");