Skip to content

Commit

Permalink
Fix: post detail view
Browse files Browse the repository at this point in the history
  • Loading branch information
NoaHimesaka1873 committed Dec 29, 2024
1 parent 050dae1 commit c2795bd
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@ export const DetailedStatus: React.FC<{
let media = contentMedia;
let mediaIcons: string[] = contentMediaIcons;

const { signedIn } = useIdentity();

Check failure on line 167 in app/javascript/flavours/glitch/features/status/components/detailed_status.tsx

View workflow job for this annotation

GitHub Actions / lint

React Hook "useIdentity" is called conditionally. React Hooks must be called in the exact same order in every component render

if (mediaOutsideCW) {
media = extraMedia;
mediaIcons = extraMediaIcons;
Expand Down

0 comments on commit c2795bd

Please sign in to comment.