Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
1f91b8c
Convert target files to typescript
MajorLift May 15, 2025
7b1bb31
Remove HOC container for `Routes`
MajorLift Jul 31, 2025
f470f09
Fix selectors
MajorLift Jul 31, 2025
d3a96f3
Convert `<Routes />` to functional component
MajorLift Jul 31, 2025
b2ddb91
Fix dispatch callbacks
MajorLift Aug 4, 2025
1c53c97
consolidate feature flag branch for `isLoadingShown` definition
MajorLift Aug 4, 2025
21e68fe
Use `component` prop for `Route` instances
MajorLift Aug 4, 2025
61733a0
Handle undefined case for `openExtensionInBrowser`
MajorLift Aug 4, 2025
5d38733
Add `component` to proptypes of `Route` wrapper components
MajorLift Aug 5, 2025
2b9015b
Restore `exact` props to routes
MajorLift Aug 5, 2025
d6e3bc0
undefined case handling for `getSelectedAccountTokensAcrossChains`
MajorLift Aug 5, 2025
7231ab7
Fix wrong path for `CreateAccountPage`
MajorLift Aug 7, 2025
831c40b
Better comments
MajorLift Aug 7, 2025
6134411
Fix incorrect selector output destructuring
MajorLift Aug 7, 2025
b1a9e0f
Merge branch 'main' into chore/react-router-v6/250515-convert-Routes-…
MajorLift Aug 11, 2025
2dd9d4f
Revert changes to selectors
MajorLift Aug 11, 2025
10aee98
Revert "Revert changes to selectors"
MajorLift Aug 11, 2025
5f2e795
Add effect cleanup for `history.listen` call
MajorLift Aug 11, 2025
c867278
Prevent `openExtensionInBrowser` from triggering on unrelated deps ch…
MajorLift Aug 11, 2025
29b0b66
minimize re-renders by splitting `useEffect` calls by deps
MajorLift Aug 11, 2025
6dbf846
Remove unused variable
MajorLift Aug 11, 2025
2c740d2
Revert change to `getSelectedAccountTokensAcrossChains` behavior and …
MajorLift Aug 11, 2025
2da9b28
Restore destructuring undefined handling
MajorLift Aug 11, 2025
aeeb1c6
Restore early exit to `getSelectedAccountTokensAcrossChains` but retu…
MajorLift Aug 11, 2025
c1be73a
Consolidate duplicated types for default export modules
MajorLift Aug 12, 2025
765e46a
Add TODOs to fix named exports cast as default exports
MajorLift Aug 12, 2025
2864c6e
Move `useAppSelector` to `ui/store/store.ts`
MajorLift Aug 12, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Restore destructuring undefined handling
  • Loading branch information
MajorLift committed Aug 11, 2025
commit 2da9b289b083cee230865fceac1acf28cba5fe87
3 changes: 2 additions & 1 deletion ui/selectors/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,8 @@ export function getSelectedAccountNativeTokenCachedBalanceByChainId(state) {
*/
export function getSelectedAccountTokensAcrossChains(state) {
const { allTokens } = state.metamask;
const selectedAddress = getSelectedEvmInternalAccount(state).address;
const { address: selectedAddress } =
getSelectedEvmInternalAccount(state) ?? {};

const tokensByChain = {};

Expand Down
Loading