style: npm run format

This commit is contained in:
Danny Liu 2024-04-04 12:10:45 -07:00
parent 0c43897f3d
commit a2bd9b8639
2 changed files with 12 additions and 5 deletions

View file

@ -58,7 +58,12 @@ export const userSignIn = async (email: string, password: string) => {
return res;
};
export const userSignUp = async (name: string, email: string, password: string, profile_image_url: string) => {
export const userSignUp = async (
name: string,
email: string,
password: string,
profile_image_url: string
) => {
let error = null;
const res = await fetch(`${WEBUI_API_BASE_URL}/auths/signup`, {

View file

@ -36,10 +36,12 @@
};
const signUpHandler = async () => {
const sessionUser = await userSignUp(name, email, password, generateInitialsImage(name)).catch((error) => {
const sessionUser = await userSignUp(name, email, password, generateInitialsImage(name)).catch(
(error) => {
toast.error(error);
return null;
});
}
);
await setSessionUser(sessionUser);
};