prevents effect from being re-ran on every render
This commit is contained in:
parent
576cc6cffd
commit
c0dd3e48a4
1 changed files with 1 additions and 1 deletions
|
@ -170,7 +170,7 @@ function App(props: Props) {
|
|||
};
|
||||
window.addEventListener('keydown', handleKeyPress);
|
||||
return () => window.removeEventListener('keydown', handleKeyPress);
|
||||
});
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
if (referredRewardAvailable && sanitizedReferrerParam && isRewardApproved) {
|
||||
|
|
Loading…
Add table
Reference in a new issue