Skip to content

Commit

Permalink
fixup! feat(suite-native): use crypto icon with network
Browse files Browse the repository at this point in the history
  • Loading branch information
vytick committed Feb 10, 2025
1 parent b1c449b commit 3858b77
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ const AccountDetailScreenHeaderContent = ({
}: AccountDetailScreenHeaderProps) => {
const symbol = useSelector((state: AccountsRootState) =>
selectAccountNetworkSymbol(state, accountKey),
)!;
);

if (!symbol) {
return null;
}

return (
<HStack alignItems="center">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,17 @@ export const TokenAccountDetailScreenHeader = ({
);
const symbol = useSelector((state: AccountsRootState) =>
selectAccountNetworkSymbol(state, accountKey),
)!;
);
const token = useSelector((state: TokensRootState) =>
selectAccountTokenInfo(state, accountKey, tokenContract),
);
const route = useRoute<RouteProp<RootStackParamList, RootStackRoutes.AccountDetail>>();
const { closeActionType } = route.params;

if (!symbol) {
return null;
}

return (
<ScreenHeader
content={
Expand Down

0 comments on commit 3858b77

Please sign in to comment.