From e634738c94203acbfa5048768d829994c5653690 Mon Sep 17 00:00:00 2001 From: Marcelo Puebla Date: Fri, 31 Jan 2020 16:43:54 -0300 Subject: [PATCH] Fix Routing entre formas de pago --- src/app/shared/error-forma-pago/error-forma-pago.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(); } -- 1.9.1