Skip to content

Commit

Permalink
Clean up chain id
Browse files Browse the repository at this point in the history
  • Loading branch information
mattupham committed Aug 8, 2024
1 parent eadf88e commit 2e6ffaf
Showing 1 changed file with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,20 +61,18 @@ export const TransferRow: FunctionComponent<Activity> = ({
toChainId,
fromChainId,
}) => {
const findChainNameOrId =
transfer?.direction === "withdraw" ? toChainId : fromChainId;
const chainId =
(transfer?.direction === "withdraw" ? toChainId : fromChainId) || "";

const { data: chainData } = api.edge.chains.getChainDisplayInfo.useQuery(
{
chainId: "bitcoin",
chainId,
},
{
useErrorBoundary: false,
}
);

// console.log("chainDataEVM: ", chainDataEVM);

const text = transfer?.direction === "withdraw" ? "to" : "from";

const leftComponent = transfer ? (
Expand Down Expand Up @@ -102,7 +100,7 @@ export const TransferRow: FunctionComponent<Activity> = ({
/>
<ChainLogo
prettyName={chainData?.prettyName}
color={undefined}
color={chainData?.color}
logoUri={chainData?.relativeLogoUrl}
size="md"
/>
Expand All @@ -111,7 +109,7 @@ export const TransferRow: FunctionComponent<Activity> = ({
<>
<ChainLogo
prettyName={chainData?.prettyName}
color={undefined}
color={chainData?.color}
logoUri={chainData?.relativeLogoUrl}
size="md"
/>
Expand Down

0 comments on commit 2e6ffaf

Please sign in to comment.