Commit 3db8ca57b39ce01ba175e5e2d58ab6b7588cc8de
1 parent
cc2d5a0568
Exists in
master
fix qr
Showing
1 changed file
with
5 additions
and
1 deletions
Show diff stats
src/app/components/confirmacion-carrito/confirmacion-carrito.component.ts
... | ... | @@ -81,6 +81,11 @@ export class ConfirmacionCarritoComponent implements OnInit, OnDestroy { |
81 | 81 | |
82 | 82 | pagar(medioPago: string) { |
83 | 83 | |
84 | + if (medioPago == 'electronico') { | |
85 | + | |
86 | + this.verQR = true; | |
87 | + } | |
88 | + | |
84 | 89 | this.productoService.pagar(medioPago) |
85 | 90 | .subscribe(() => { |
86 | 91 | |
... | ... | @@ -92,7 +97,6 @@ export class ConfirmacionCarritoComponent implements OnInit, OnDestroy { |
92 | 97 | } else if (medioPago == 'electronico') { |
93 | 98 | |
94 | 99 | this.compraConQRfinalizada = true; |
95 | - this.verQR = true; | |
96 | 100 | } |
97 | 101 | |
98 | 102 | setTimeout(() => { |