diff --git a/dashboard/src/views/ProfileView.vue b/dashboard/src/views/ProfileView.vue index 13ec4ad51..22e3d7319 100644 --- a/dashboard/src/views/ProfileView.vue +++ b/dashboard/src/views/ProfileView.vue @@ -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 diff --git a/dashboard/src/views/SetupView.vue b/dashboard/src/views/SetupView.vue index 6a387880e..2c25de468 100644 --- a/dashboard/src/views/SetupView.vue +++ b/dashboard/src/views/SetupView.vue @@ -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 {