diff --git a/src/app/shared/error-forma-pago/error-forma-pago.component.ts b/src/app/shared/error-forma-pago/error-forma-pago.component.ts index 164b086..7449212 100644 --- a/src/app/shared/error-forma-pago/error-forma-pago.component.ts +++ b/src/app/shared/error-forma-pago/error-forma-pago.component.ts @@ -1,5 +1,5 @@ import { Component, OnInit } from '@angular/core'; -import { Router } from '@angular/router'; +import { Location } from '@angular/common'; import { BsModalRef } from 'ngx-bootstrap/modal'; @Component({ @@ -10,14 +10,14 @@ import { BsModalRef } from 'ngx-bootstrap/modal'; export class ErrorFormaPagoComponent implements OnInit { constructor( - private router: Router, + private location: Location, private modalRef: BsModalRef, ) { } ngOnInit() { } continuar() { - this.router.navigate(['forma-pago']); + this.location.back(); this.modalRef.hide(); }