iptdevs-design-system 3.1.334 → 3.1.335

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4924,15 +4924,20 @@ class CodFormComponent {
4924
4924
  }
4925
4925
  else if (response.message.code === 3) {
4926
4926
  console.log(response.data);
4927
- const alertHtml = `
4928
- <div class="my-custom-alert">
4927
+ let alertHtml = `
4928
+ <div class="my-custom-alert">
4929
4929
  <h2>Warning!</h2>
4930
- <p>${response.data.warning.average_score}</p>
4931
- <p>${response.data.warning.non_attendance}</p>
4932
- <p>${response.data.warning.outstanding_payments}</p>
4933
-
4934
- </div>
4935
4930
  `;
4931
+ if (!response.data.warning.average_score) {
4932
+ alertHtml += `<p>No paso el promedio final o tuvo inasistencia en examenes finales</p><br>`;
4933
+ }
4934
+ if (!response.data.warning.non_attendance) {
4935
+ alertHtml += `<p>tuvo mas del 25% de inasistencias</p><br>`;
4936
+ }
4937
+ if (!response.data.warning.outstanding_payments) {
4938
+ alertHtml += `<p>Tiene pagos pendientes</p>`;
4939
+ }
4940
+ alertHtml += `</div>`;
4936
4941
  Swal.fire({
4937
4942
  html: alertHtml,
4938
4943
  icon: 'warning',