Skip to content

Commit

Permalink
Correct preparing time format
Browse files Browse the repository at this point in the history
  • Loading branch information
GonzalesRav committed May 31, 2023
1 parent ea01aad commit f8d83fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions burguer-queen/src/app/orders/orders.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ export class OrdersComponent {
verifyUser() {
const sessionUser = sessionStorage.getItem('user')
if (sessionUser === 'cheff') { return 'none' } else {return 'block'}


}


Expand Down Expand Up @@ -74,9 +72,7 @@ export class OrdersComponent {
// Convertir tiempo transcurrido de milisegundos a minutos
const minutes = Math.floor(timeDelivered / (1000 * 60));

return minutes;
if (isNaN(minutes)) { return 0
} else { return minutes}
}



}
2 changes: 1 addition & 1 deletion burguer-queen/src/app/services/api-bq.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { Observable } from 'rxjs';//un observable es un flujo de eventos o datos
})
export class ApiBQService {

url:string = "http://localhost:8080/";
url:string = "https://burgerqueen-db.onrender.com/";

constructor(private http:HttpClient) { }

Expand Down

0 comments on commit f8d83fa

Please sign in to comment.