Fixup some TODOs

This commit is contained in:
Johannes Zellner
2025-04-11 17:30:05 +02:00
parent 11e4542746
commit a430b66a8d
2 changed files with 1 additions and 7 deletions
+1 -6
View File
@@ -107,12 +107,7 @@ async function onChangeFallbackEmail(currentFallbackEmail) {
async function onAvatarChanged(file) {
await profileModel.setAvatar(file);
// TODO we somehow need to do this globally
// invalidate and refresh profile avatar url
const u = new URL(user.value.avatarUrl);
u.searchParams.set('ts', Date.now());
user.value.avatarUrl = u.toString();
await refreshProfile();
}
// Password changes
-1
View File
@@ -103,7 +103,6 @@ async function onSubmit() {
const [error] = await provisionModel.setup(data);
if (error) {
if (error.status === 422) {
// TODO what is this special error checking for ami doing here?
if (provider.value === 'ami') {
formError.value.ami = error.body.message;
} else {