Commit cffd6f774a95124ae78678f81237e0c84e0e1fb2

Authored by Benjamin Rodriguez
1 parent a4b272bda1

arreglo commit

Showing 1 changed file with 4 additions and 4 deletions   Show diff stats
src/app/modules/comanda/comanda.component.ts
... ... @@ -58,8 +58,8 @@ export class ComandaComponent implements OnInit {
58 58 observacion: observacionNueva,
59 59 tiempoEspera: `${comanda.hoursPedido}:${comanda.secondsPedido}:${comanda.secondsPedido}`,
60 60 tiempoElaboracion: `${comanda.hoursElaboracion}:${comanda.secondsElaboracion}:${comanda.secondsElaboracion}`,
61   - }
62   - if (data.estado == 3) {
  61 + };
  62 + if (data.estado === 3) {
63 63 this.comandaService.imprimirComandaCocina(parseInt(data.idComanda))
64 64 .subscribe(res => { }, err => console.error(err)
65 65 );
... ... @@ -72,10 +72,10 @@ export class ComandaComponent implements OnInit {
72 72 if (res.data) {
73 73 comanda.estado = estadoNuevo;
74 74 comanda.observacion = observacionNueva;
75   - if (estadoNuevo == 2) {
  75 + if (estadoNuevo === 2) {
76 76 this.startTimerElaboracion(comanda);
77 77 } else if (comanda.timerElaboracion) {
78   - clearInterval(comanda.timerElaboracion)
  78 + clearInterval(comanda.timerElaboracion);
79 79 }
80 80 }
81 81 }, e => console.error(e));