Compare commits
4 Commits
develop
...
eee589174e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eee589174e | ||
|
|
47945c9b54 | ||
|
|
1c5652dae6 | ||
| 1f5ab7b133 |
@@ -7,4 +7,4 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: portal
|
- name: portal
|
||||||
image: 172.35.0.216:3000/simplifique/vendaweb-portal:b8cda80
|
image: 172.35.0.216:3000/simplifique/vendaweb-portal:47945c9
|
||||||
|
|||||||
@@ -84,15 +84,9 @@ export class DiscountOrderComponent implements OnInit, OnDestroy {
|
|||||||
}
|
}
|
||||||
|
|
||||||
confirmDiscount() {
|
confirmDiscount() {
|
||||||
const domain = '@jurunense.com.br';
|
|
||||||
let email = this.formDiscount.get('formUser.email').value;
|
let email = this.formDiscount.get('formUser.email').value;
|
||||||
|
|
||||||
// Remover domínio se já estiver presente
|
const emailUpperCase = email.toUpperCase();
|
||||||
if (email.toLowerCase().endsWith(domain)) {
|
|
||||||
email = email.substring(0, email.length - domain.length);
|
|
||||||
}
|
|
||||||
|
|
||||||
const emailUpperCase = (email + domain).toUpperCase();
|
|
||||||
const passwordUpperCase = this.formDiscount.get('formUser.password').value.toUpperCase();
|
const passwordUpperCase = this.formDiscount.get('formUser.password').value.toUpperCase();
|
||||||
|
|
||||||
if (this.discountAuthorization < this.percent) {
|
if (this.discountAuthorization < this.percent) {
|
||||||
|
|||||||
Reference in New Issue
Block a user