From 3bf6af6a3edcf806f6acf4438400c556f9cc10a3 Mon Sep 17 00:00:00 2001 From: "nise.moe" Date: Tue, 5 Mar 2024 12:46:02 +0100 Subject: [PATCH] Handle replay upload errors --- nise-frontend/src/app/home/home.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nise-frontend/src/app/home/home.component.ts b/nise-frontend/src/app/home/home.component.ts index 8274b04..e12be61 100644 --- a/nise-frontend/src/app/home/home.component.ts +++ b/nise-frontend/src/app/home/home.component.ts @@ -120,7 +120,8 @@ export class HomeComponent implements OnInit, OnDestroy { this.loading = false; this.router.navigate(['/c/' + response.id ]); }, - error: (error) => { + error: () => { + alert('Error uploading replay :('); this.loading = false; }, });