Code refactore on pedido mobile

This commit is contained in:
Eudes Inácio
2023-02-06 09:44:43 +01:00
parent cddddf982b
commit dcff115816
3 changed files with 8 additions and 12 deletions
@@ -176,19 +176,15 @@ export class PedidoPage implements OnInit {
}, (error) => {
if (error.status == 0) {
this.getfromDb();
this.toastService._badRequest('Sem acesso à internet. Por favor verifique sua conexão')
} else {
this.toastService._badRequest('Processo não encontrado')
try {
this.goBack()
this.close()
} catch (e) {
window.history.back();
}
if(error.status == 0) {
this.toastService._badRequest('Sem acesso à internet. Por favor verifique sua conexão')
} else {
this.toastService._badRequest('Processo não encontrado')
}
}
});