Fix bug that was introduced in https://github.com/threshold-network/token-dashboard/pull/655. The useRequestEthereumAccount hook that supposed to be used only in embed mode, was firing it's useEffect in the website where it set the empty account in the redux state. This prevented some functionality in the dApp to work properly. For example the Operator Mapping Card was not displayed when user connected the account on the Staking page.
The fix is adding isEmbed check for all useEffects related to ledger live app.
Fix bug that was introduced in https://github.com/threshold-network/token-dashboard/pull/655. The
useRequestEthereumAccount
hook that supposed to be used only in embed mode, was firing it'suseEffect
in the website where it set the empty account in the redux state. This prevented some functionality in the dApp to work properly. For example the Operator Mapping Card was not displayed when user connected the account on the Staking page.The fix is adding
isEmbed
check for alluseEffects
related to ledger live app.