1
0
Fork 0
This commit is contained in:
Julian 2023-04-25 17:54:21 -04:00
parent 03ff799dfd
commit ebea014083
Signed by untrusted user: NotNite
GPG Key ID: BD91A5402CCEB08A
1 changed files with 2 additions and 1 deletions

View File

@ -74,7 +74,8 @@ export default function RegisterForm({ ticket }: { ticket: string }) {
].map((ref) => ref.current?.value);
const avatar = avatarRef.current?.files?.[0];
const avatarBase64 = avatar != null ? fileAsBase64(avatar!) : null;
const avatarBase64 =
avatar != null ? await fileAsBase64(avatar!) : null;
if (password !== confirmPassword) {
setPasswordMismatch(true);