Skip to content

Commit

Permalink
Ajustes lint e test
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiolucenaribas committed May 24, 2024
1 parent 39595c2 commit 14d3d28
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/app/template/template.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
<tr *ngFor="let row of getClientesVisiveis(); let i = index; let last = last">
<td colspan="3"
[style]="last && !formulario?.opcoes?.exibirAssinaturaCorretor && !formulario?.opcoes?.exibirAssinaturaGerente? { 'border-top': 'none' } : { 'border-top': 'none', 'border-bottom': 'none' }"
*ngIf="row.length == 3 && formulario?.opcoes?.exibirAssinaturaCliente">
*ngIf="row.length === 3 && formulario?.opcoes?.exibirAssinaturaCliente">
<table width=100%>
<tbody>
<tr>
Expand Down Expand Up @@ -177,7 +177,7 @@

<td colspan="3"
[style]="last && !formulario?.opcoes?.exibirAssinaturaCorretor && !formulario?.opcoes?.exibirAssinaturaGerente? { 'border-top': 'none' } : { 'border-top': 'none', 'border-bottom': 'none' }"
*ngIf="row.length == 2 && formulario?.opcoes?.exibirAssinaturaCliente">
*ngIf="row.length === 2 && formulario?.opcoes?.exibirAssinaturaCliente">
<table width=100%>
<tbody>
<tr>
Expand All @@ -203,7 +203,7 @@

<td colspan="3"
[style]="last && !formulario?.opcoes?.exibirAssinaturaCorretor && !formulario?.opcoes?.exibirAssinaturaGerente? { 'border-top': 'none' } : { 'border-top': 'none', 'border-bottom': 'none' }"
*ngIf="row.length == 1 && formulario?.opcoes?.exibirAssinaturaCliente">
*ngIf="row.length === 1 && formulario?.opcoes?.exibirAssinaturaCliente">
<table width=100%>
<tbody>
<tr>
Expand Down
4 changes: 2 additions & 2 deletions src/app/template/template.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ export class TemplateComponent {
}

getClientesVisiveis(): Cliente[][] {
const clientesVisiveis: Cliente[] = this.formulario.dadosClientes.filter(cliente => cliente.visivel);
const clientesVisiveis: Cliente[] = this.formulario?.dadosClientes.filter(cliente => cliente.visivel);
const gruposClientes: Cliente[][] = [];

for (let i = 0; i < clientesVisiveis.length; i += 3) {
for (let i = 0; i < clientesVisiveis?.length; i += 3) {
gruposClientes.push(clientesVisiveis.slice(i, i + 3));
}

Expand Down

0 comments on commit 14d3d28

Please sign in to comment.