Skip to content

Commit

Permalink
fix medias
Browse files Browse the repository at this point in the history
  • Loading branch information
YohanTz committed Apr 4, 2024
1 parent 6e3c4a3 commit 3d93d6f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export default function NftTransferItem({
alt="nft"
className="rounded-lg"
height={62}
src={collectionImage}
media={{ format: "image", src: collectionImage }}
width={62}
/>
<div className="text-left">
Expand Down
1 change: 0 additions & 1 deletion apps/web/src/app/_components/Media.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ export default function Media({
width,
}: MediaProps) {
const { resolvedTheme } = useTheme();
console.log(media);

if (media.src === undefined || media.src.length === 0) {
return (
Expand Down
6 changes: 1 addition & 5 deletions apps/web/src/server/api/routers/bridgeRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,7 @@ export const bridgeRequestRouter = createTRPCRouter({
past: { requests: [], totalCount: 0 },
};
}
// if (
// bridgeRequests[0] !== undefined &&
// bridgeRequests[0]?.req.chain_src === "eth"
// ) {
// }

let requestMetadata: Array<Nft> = [];
if (bridgeRequests[0]?.req.chain_src === "eth") {
requestMetadata = await alchemy.nft.getNftMetadataBatch(
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/server/api/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export type NftMedia = { format: "image" | "video"; src: string | undefined };
export type NftMedia = { format: string; src: string | undefined };

export type Nft = {
contractAddress: string;
Expand Down

0 comments on commit 3d93d6f

Please sign in to comment.