Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
targoninc-alex committed Jun 1, 2024
1 parent 3cbe200 commit 4067f38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ui/components/pages/profile.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export class ProfileComponent {
input.onchange = () => {
const reader = new FileReader();
reader.onload = () => {
const base64 = reader.result.split(',')[1];
const base64 = reader.result.toString();
avatar.value = base64;
Api.updateAvatar(base64).then((res) => {
if (res.status !== 200) {
Expand Down
2 changes: 1 addition & 1 deletion ui/components/pages/register.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export class RegisterComponent {
toast("Registration successful", "positive");
window.router.navigate("chat");
} else {
toast("Registration failed", "negative");
toast("Registration failed: " + res.data.error, "negative");
}
}).catch(() => {
loading.value = false;
Expand Down

0 comments on commit 4067f38

Please sign in to comment.