Skip to content

Commit b445610

Browse files
committed
🐛 return early on error during profile import
1 parent 65e3459 commit b445610

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/front-end/app/views/home/profile.vue

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,14 @@ const Profile = defineComponent({
5757
this.name = session.name;
5858
} catch (ex) {
5959
await this.$store.dispatch("alert", { text: `Error: ${ex}` });
60+
return;
6061
} finally {
6162
input.value = "";
6263
}
6364
64-
requestAnimationFrame(async () => {
65-
this.upToDate = true;
66-
await this.$store.dispatch("alert", {
67-
text: "Profile imported successfully",
68-
});
65+
this.upToDate = true;
66+
await this.$store.dispatch("alert", {
67+
text: "Profile imported successfully",
6968
});
7069
},
7170
submit() {

0 commit comments

Comments
 (0)