Skip to content

Commit

Permalink
yarn format
Browse files Browse the repository at this point in the history
  • Loading branch information
mkst committed Feb 5, 2025
1 parent 0501e14 commit 2c77c80
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/src/lib/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ export * from "./api/request";
export * from "./api/types";

export function useThisUser(): User | AnonymousUser | undefined {
const { data: user, error } = useSWRImmutable<AnonymousUser | User>("/user", get);
const { data: user, error } = useSWRImmutable<AnonymousUser | User>(
"/user",
get,
);

if (error) {
throw error;
Expand Down

0 comments on commit 2c77c80

Please sign in to comment.