diff --git a/frontend/src/app/app.routes.ts b/frontend/src/app/app.routes.ts
index 90b84b0..2eee208 100644
--- a/frontend/src/app/app.routes.ts
+++ b/frontend/src/app/app.routes.ts
@@ -18,5 +18,5 @@ export const routes: Routes = [
path: 'deposit',
component: DepositComponent,
canActivate: [authGuard],
- }
+ },
];
diff --git a/frontend/src/app/deposit/deposit.component.html b/frontend/src/app/deposit/deposit.component.html
index a24f3b3..cac83b2 100644
--- a/frontend/src/app/deposit/deposit.component.html
+++ b/frontend/src/app/deposit/deposit.component.html
@@ -2,7 +2,7 @@
@if (errorMsg) {
{{ errorMsg }}
}
- €
-
+ €
+
diff --git a/frontend/src/app/deposit/deposit.component.ts b/frontend/src/app/deposit/deposit.component.ts
index db6d41a..0da8395 100644
--- a/frontend/src/app/deposit/deposit.component.ts
+++ b/frontend/src/app/deposit/deposit.component.ts
@@ -7,9 +7,7 @@ import { debounceTime } from 'rxjs';
@Component({
selector: 'app-deposit',
standalone: true,
- imports: [
- ReactiveFormsModule,
- ],
+ imports: [ReactiveFormsModule],
templateUrl: './deposit.component.html',
styleUrl: './deposit.component.css',
changeDetection: ChangeDetectionStrategy.OnPush,
@@ -25,15 +23,15 @@ export class DepositComponent implements OnInit {
amount: new FormControl(50, [Validators.min(50)]),
});
- this.form.controls['amount'].valueChanges
- .pipe(debounceTime(1000))
- .subscribe((value) => {
- if (value < 50) {
- this.errorMsg = 'Minimum Einzahlungsbetrag ist 50€';
- }
- });
+ this.form.controls['amount'].valueChanges.pipe(debounceTime(1000)).subscribe((value) => {
+ if (value < 50) {
+ this.errorMsg = 'Minimum Einzahlungsbetrag ist 50€';
+ }
+ });
- this.stripe = await loadStripe('pk_test_51QrePYIvCfqz7ANgMizBorPpVjJ8S6gcaL4yvcMQnVaKyReqcQ6jqaQEF7aDZbDu8rNVsTZrw8ABek4ToxQX7KZe00jpGh8naG');
+ this.stripe = await loadStripe(
+ 'pk_test_51QrePYIvCfqz7ANgMizBorPpVjJ8S6gcaL4yvcMQnVaKyReqcQ6jqaQEF7aDZbDu8rNVsTZrw8ABek4ToxQX7KZe00jpGh8naG'
+ );
}
submit() {
diff --git a/frontend/src/app/service/deposit.service.ts b/frontend/src/app/service/deposit.service.ts
index 7dd8b78..02c8ea1 100644
--- a/frontend/src/app/service/deposit.service.ts
+++ b/frontend/src/app/service/deposit.service.ts
@@ -2,14 +2,13 @@ import { inject, Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs';
-
@Injectable({
- providedIn: 'root'
+ providedIn: 'root',
})
export class DepositService {
private http: HttpClient = inject(HttpClient);
handleDeposit(amount: number): Observable<{ sessionId: string }> {
- return this.http.post<{sessionId: string}>('/backend/deposit/checkout', {amount});
+ return this.http.post<{ sessionId: string }>('/backend/deposit/checkout', { amount });
}
}