Skip to content

Commit

Permalink
linting.
Browse files Browse the repository at this point in the history
  • Loading branch information
Yyassin committed Apr 4, 2024
1 parent a81e890 commit 2c58ad3
Showing 1 changed file with 18 additions and 15 deletions.
33 changes: 18 additions & 15 deletions client/src/views/SignInPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,13 @@ export const checkURL = async (
}>,
) => void,
setCanvasElementState: (element: CanvasElementState) => void,
editCanvasElement: (
id: string,
partialElement: Partial<CanvasElement>,
isLive?: boolean | undefined,
) => void,
editCanvasElement:
| null
| ((
id: string,
partialElement: Partial<CanvasElement>,
isLive?: boolean | undefined,
) => void),
signUp = false,
) => {
const queryParams = new URLSearchParams(window.location.search);
Expand Down Expand Up @@ -235,16 +237,17 @@ export const checkURL = async (
} as BinaryFileData;

const imageElement = { id: elemId };
commitImageToCache(
{
...binary,
lastRetrieved: Date.now(),
},
imageElement,
// Will set fileIds, triggering a rerender. A placeholder
// will be shown in the mean time.
editCanvasElement,
);
editCanvasElement &&
commitImageToCache(
{
...binary,
lastRetrieved: Date.now(),
},
imageElement,
// Will set fileIds, triggering a rerender. A placeholder
// will be shown in the mean time.
editCanvasElement,
);
},
);

Expand Down

0 comments on commit 2c58ad3

Please sign in to comment.