-
Notifications
You must be signed in to change notification settings - Fork 635
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert networkColors
to backendNetworks
#6353
Conversation
@@ -14,7 +14,7 @@ const STALE_TIME = 10000; | |||
|
|||
async function fetchAccountENSDomains({ accountAddress }: { accountAddress: string }) { | |||
const result = await fetchAccountDomains(accountAddress); | |||
if (!result.account) return []; | |||
if (!result?.account) return []; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this fixed the [TypeError: Cannot read property 'account' of undefined]
@@ -9,6 +9,7 @@ import { IS_TEST } from '@/env'; | |||
import { BackendNetwork, BackendNetworkServices, chainHardhat, chainHardhatOptimism, ChainId } from '@/state/backendNetworks/types'; | |||
import { GasSpeed } from '@/__swaps__/types/gas'; | |||
import { useConnectedToHardhatStore } from '@/state/connectedToHardhat'; | |||
import { colors as globalColors } from '@/styles'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small and unimportant, but given there is an export from the @/design-system called globalColors, but you do have to rename colors to something else here, something like themeColors might be less confusing
What changed (plus any additional context for devs)
Converts the ExplainSheet to use the network color from the backendNetworks. I noticed that these actually aren't used anywhere currently, but in case we want to add these explainers again they can be delivered from backend networks.
Also noticed an annoying
[TypeError: Cannot read property 'account' of undefined]
log that I fixed in the ENS hooksScreen recordings / screenshots
What to test
nothing really worth testing here.