diff --git a/frontend/package.json b/frontend/package.json index 5b184eab7b..0b095271d9 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,6 +1,6 @@ { "name": "frontend", - "version": "1.0.121", + "version": "1.0.124", "scripts": { "install:deps": "npm install", "start": "npm install && ng serve --configuration local --open", diff --git a/frontend/src/app/core/services/firestore.service.ts b/frontend/src/app/core/services/firestore.service.ts index 3871c5a6d9..438332b22c 100644 --- a/frontend/src/app/core/services/firestore.service.ts +++ b/frontend/src/app/core/services/firestore.service.ts @@ -11,7 +11,7 @@ import { DocumentData, } from '@angular/fire/firestore'; import { HttpClient } from '@angular/common/http'; -import { catchError, EMPTY, Observable } from 'rxjs'; +import { catchError, EMPTY, Observable, of } from 'rxjs'; @Injectable({ providedIn: 'root', @@ -30,7 +30,7 @@ export class FirestoreService { return this.http.post(this.cloudFunctionUrl, { data }).pipe( catchError(error => { console.error('Error while posting to cloud function:', error); - return error; + return of(null); }), ); } diff --git a/frontend/src/app/features/web-node/web-node-file-upload/web-node-file-upload.component.html b/frontend/src/app/features/web-node/web-node-file-upload/web-node-file-upload.component.html index a072a18d09..405b46d0ed 100644 --- a/frontend/src/app/features/web-node/web-node-file-upload/web-node-file-upload.component.html +++ b/frontend/src/app/features/web-node/web-node-file-upload/web-node-file-upload.component.html @@ -68,14 +68,16 @@

Set Up Your Web Node

}
- - - - - - - - + @if (!isLeaderboard) { + + + }