Skip to content

Commit

Permalink
more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
elcharitas committed Mar 4, 2024
1 parent 0fbd643 commit c401acb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/frontend/src/api/utils/twitterUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ export const parseRemoteTweetV1 = (
attachments: {
media_keys: t.attachments?.media_keys ?? [],
attachments:
r.includes.media?.filter(
(m) => t.attachments?.media_keys?.includes(m.media_key)
r.includes.media?.filter((m) =>
t.attachments?.media_keys?.includes(m.media_key)
) ?? [],
},
author: r.includes.users.find(
Expand Down
4 changes: 2 additions & 2 deletions packages/frontend/src/components/feeds/FeedComponents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ export function TweetMedia<
E = T extends "video"
? HTMLVideoElement
: T extends "audio"
? HTMLAudioElement
: HTMLImageElement,
? HTMLAudioElement
: HTMLImageElement,
>({ mediaType, className, ...props }: ITweetMedia<T, E>) {
const MediaComponent = mediaType as unknown as FC<HTMLProps<E>> | null;
return (
Expand Down

0 comments on commit c401acb

Please sign in to comment.