generated from CS3219-AY2324S1/course-assessment-template
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
333 additions
and
165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
Exception: STATUS_STACK_OVERFLOW at rip=0010040B625 | ||
rax=0000000000000000 rbx=00000000FFE04040 rcx=0000000000000000 | ||
rdx=0000000000000000 rsi=00000001004F73A0 rdi=00000000000000C8 | ||
r8 =0000000000000000 r9 =00000000FFFFDE08 r10=00000000FFFFE458 | ||
r11=0000000100000000 r12=0000000000000000 r13=00000008006429D0 | ||
r14=0000000000000000 r15=00000000FFFFFFFF | ||
rbp=0000000000000000 rsp=00000000FFE03E40 | ||
program=C:\Program Files\Git\usr\bin\bash.exe, pid 2063, thread | ||
cs=0033 ds=002B es=002B fs=0053 gs=002B ss=002B | ||
Stack trace: | ||
Frame Function Args | ||
00000000000 0010040B625 (001004036F5, 00000000010, 00000000000, 000FFE04DB0) | ||
00000000010 00100401FFA (00210199B0B, 00800082CE0, 00800642B60, 008006429D0) | ||
00000000010 0010046ED5C (001004FA2EA, 00000000415, 0021032C948, 00000000000) | ||
00000000010 0010044A6AF (0010000001F, 00000000000, 00000000010, 001004FA2EA) | ||
00800642810 00100417AD9 (00210199B0B, 00800082CE0, 00800642100, 00800642810) | ||
00000000010 0010046F115 (001004FA2EA, 00000000415, 0021032C948, 00000000000) | ||
00000000010 0010044A6AF (0010000001F, 00000000000, 00000000010, 001004FA2EA) | ||
00800641DB0 00100417AD9 (00210199B0B, 00800082CE0, 008006416A0, 00800641DB0) | ||
00000000010 0010046F115 (001004FA2EA, 00000000415, 0021032C948, 00000000000) | ||
00000000010 0010044A6AF (0010000001F, 00000000000, 00000000010, 001004FA2EA) | ||
00800641350 00100417AD9 (00210199B0B, 00800082CE0, 00800640C40, 00800641350) | ||
00000000010 0010046F115 (001004FA2EA, 00000000415, 0021032C948, 00000000000) | ||
00000000010 0010044A6AF (0010000001F, 00000000000, 00000000010, 001004FA2EA) | ||
008006408F0 00100417AD9 (00210199B0B, 00800082CE0, 008006401E0, 008006408F0) | ||
00000000010 0010046F115 (001004FA2EA, 00000000415, 0021032C948, 00000000000) | ||
00000000010 0010044A6AF (0010000001F, 00000000000, 00000000010, 001004FA2EA) | ||
0080063FE90 00100417AD9 (00210199B0B, 00800082CE0, 0080063F780, 0080063FE90) | ||
00000000010 0010046F115 (001004FA2EA, 00000000415, 0021032C948, 00000000000) | ||
00000000010 0010044A6AF (0010000001F, 00000000000, 00000000010, 001004FA2EA) | ||
0080063F430 00100417AD9 (00210199B0B, 00800082CE0, 0080063ED20, 0080063F430) | ||
00000000010 0010046F115 (001004FA2EA, 00000000415, 0021032C948, 00000000000) | ||
00000000010 0010044A6AF (0010000001F, 00000000000, 00000000010, 001004FA2EA) | ||
0080063E9D0 00100417AD9 (00210199B0B, 00800082CE0, 0080063E2C0, 0080063E9D0) | ||
00000000010 0010046F115 (001004FA2EA, 00000000415, 0021032C948, 00000000000) | ||
00000000010 0010044A6AF (0010000001F, 00000000000, 00000000010, 001004FA2EA) | ||
0080063DF70 00100417AD9 (00210199B0B, 00800082CE0, 0080063D860, 0080063DF70) | ||
00000000010 0010046F115 (001004FA2EA, 00000000415, 0021032C948, 00000000000) | ||
00000000010 0010044A6AF (0010000001F, 00000000000, 00000000010, 001004FA2EA) | ||
0080063D510 00100417AD9 (00210199B0B, 00800082CE0, 0080063CE00, 0080063D510) | ||
00000000010 0010046F115 (001004FA2EA, 00000000415, 0021032C948, 00000000000) | ||
00000000010 0010044A6AF (0010000001F, 00000000000, 00000000010, 001004FA2EA) | ||
0080063CAB0 00100417AD9 (00210199B0B, 00800082CE0, 0080063C3A0, 0080063CAB0) | ||
End of stack trace (more stack frames may be present) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,21 @@ | ||
import { updateUserByUid } from "@/pages/api/userHandler"; | ||
import { getAuth, updateProfile } from "firebase/auth"; | ||
|
||
export const useUpdateProfile = () => { | ||
|
||
const updateUserProfile = async ({displayName, photoURL}: {displayName?: string, photoURL?: string}) => { | ||
const auth = getAuth(); | ||
try { | ||
await updateProfile(auth.currentUser!, { displayName, photoURL }); | ||
} catch (error) { | ||
console.log(error); | ||
} | ||
}; | ||
|
||
return { updateUserProfile }; | ||
}; | ||
const updateUserProfile = async ({ | ||
displayName, | ||
photoURL, | ||
}: { | ||
displayName?: string; | ||
photoURL?: string; | ||
}) => { | ||
const auth = getAuth(); | ||
try { | ||
await updateProfile(auth.currentUser!, { displayName, photoURL }); | ||
} catch (error) { | ||
console.log(error); | ||
} | ||
}; | ||
|
||
return { updateUserProfile }; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.