style: appropriately touch quality tools
Some checks failed
CI / Get Changed Files (pull_request) Successful in 8s
CI / Checkstyle Main (pull_request) Has been skipped
CI / Docker backend validation (pull_request) Has been skipped
CI / oxlint (pull_request) Successful in 16s
CI / eslint (pull_request) Successful in 24s
CI / prettier (pull_request) Failing after 24s
CI / Docker frontend validation (pull_request) Successful in 43s
CI / test-build (pull_request) Successful in 44s
Some checks failed
CI / Get Changed Files (pull_request) Successful in 8s
CI / Checkstyle Main (pull_request) Has been skipped
CI / Docker backend validation (pull_request) Has been skipped
CI / oxlint (pull_request) Successful in 16s
CI / eslint (pull_request) Successful in 24s
CI / prettier (pull_request) Failing after 24s
CI / Docker frontend validation (pull_request) Successful in 43s
CI / test-build (pull_request) Successful in 44s
This commit is contained in:
parent
f5bae60e0f
commit
54e9ccf426
1 changed files with 8 additions and 16 deletions
|
@ -1,16 +1,10 @@
|
||||||
import { Component, signal, inject, OnInit } from '@angular/core';
|
import {Component, inject, OnInit, signal} from '@angular/core';
|
||||||
import { CommonModule } from '@angular/common';
|
import {CommonModule} from '@angular/common';
|
||||||
import {
|
import {FormBuilder, FormControl, FormGroup, ReactiveFormsModule, Validators,} from '@angular/forms';
|
||||||
FormBuilder,
|
import {DiceService} from './dice.service';
|
||||||
FormControl,
|
import {DiceDto, DiceResult} from './dice.model';
|
||||||
FormGroup,
|
import {tap} from 'rxjs/operators';
|
||||||
ReactiveFormsModule,
|
import {UserService} from '@service/user.service';
|
||||||
Validators,
|
|
||||||
} from '@angular/forms';
|
|
||||||
import { DiceService } from './dice.service';
|
|
||||||
import { DiceDto, DiceResult } from './dice.model';
|
|
||||||
import { debounceTime, tap } from 'rxjs/operators';
|
|
||||||
import { UserService } from '@service/user.service';
|
|
||||||
|
|
||||||
type DiceFormGroup = FormGroup<{
|
type DiceFormGroup = FormGroup<{
|
||||||
betAmount: FormControl<number | null>;
|
betAmount: FormControl<number | null>;
|
||||||
|
@ -41,9 +35,7 @@ export class DiceComponent implements OnInit {
|
||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
this.diceForm.valueChanges
|
this.diceForm.valueChanges
|
||||||
.pipe(
|
.pipe(tap(() => this.calculateWinChanceAndPotentialWin()))
|
||||||
tap(() => this.calculateWinChanceAndPotentialWin())
|
|
||||||
)
|
|
||||||
.subscribe();
|
.subscribe();
|
||||||
|
|
||||||
this.calculateWinChanceAndPotentialWin();
|
this.calculateWinChanceAndPotentialWin();
|
||||||
|
|
Reference in a new issue