don't always re-run effect
This commit is contained in:
parent
c35b3be795
commit
68aa1e9ece
@ -53,7 +53,7 @@ function TalerPayDialog({ talerPayUri }: { talerPayUri: string }) {
|
||||
setPayStatus(p);
|
||||
};
|
||||
doFetch();
|
||||
});
|
||||
}, [numTries]);
|
||||
|
||||
if (!payStatus) {
|
||||
return <span>Loading payment information ...</span>;
|
||||
|
@ -49,7 +49,7 @@ function RefundStatusView(props: { talerRefundUri: string }) {
|
||||
}
|
||||
};
|
||||
doFetch();
|
||||
});
|
||||
}, []);
|
||||
|
||||
console.log("rendering");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user