From 494b71c0e34de32b4d984d1f6511b19950af8720 Mon Sep 17 00:00:00 2001
From: FJ Tech <164685231+Tech-FestivalDoJapao@users.noreply.github.com>
Date: Fri, 20 Sep 2024 19:48:37 -0300
Subject: [PATCH 1/5] Fix code scanning alert #20: DOM text reinterpreted as
HTML
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
---
fj-tech/src/js/voluntarios/festival/resgate_voucher.mjs | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/fj-tech/src/js/voluntarios/festival/resgate_voucher.mjs b/fj-tech/src/js/voluntarios/festival/resgate_voucher.mjs
index 176c898b..795c33a0 100644
--- a/fj-tech/src/js/voluntarios/festival/resgate_voucher.mjs
+++ b/fj-tech/src/js/voluntarios/festival/resgate_voucher.mjs
@@ -50,7 +50,10 @@ document.getElementById("corpoTabelaDeListagemDeVoluntarios").addEventListener("
console.log("Voucher resgatado com sucesso");
// Exibe o tipo de voucher resgatado pelo voluntário
- txtResgateVoucher.innerHTML = `Voucher resgatado: ${tipoVoucherDoVoluntario}`;
+ const smallElement = document.createElement('small');
+ smallElement.className = 'opacity-50 m-0 px-4';
+ smallElement.textContent = `Voucher resgatado: ${tipoVoucherDoVoluntario}`;
+ txtResgateVoucher.appendChild(smallElement);
bloquearResgateVoucher();
}).catch((erro) => {
console.error("Erro ao resgatar voucher: ", erro);
From cd7d224f1471d9dcc8fc8fcfad1e090cf578ad5d Mon Sep 17 00:00:00 2001
From: FJ Tech <164685231+Tech-FestivalDoJapao@users.noreply.github.com>
Date: Fri, 20 Sep 2024 19:57:01 -0300
Subject: [PATCH 2/5] Update
fj-tech/src/js/voluntarios/festival/resgate_voucher.mjs
Co-authored-by: Bianca Silva
---
fj-tech/src/js/voluntarios/festival/resgate_voucher.mjs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fj-tech/src/js/voluntarios/festival/resgate_voucher.mjs b/fj-tech/src/js/voluntarios/festival/resgate_voucher.mjs
index 795c33a0..f427d3e6 100644
--- a/fj-tech/src/js/voluntarios/festival/resgate_voucher.mjs
+++ b/fj-tech/src/js/voluntarios/festival/resgate_voucher.mjs
@@ -50,7 +50,7 @@ document.getElementById("corpoTabelaDeListagemDeVoluntarios").addEventListener("
console.log("Voucher resgatado com sucesso");
// Exibe o tipo de voucher resgatado pelo voluntário
- const smallElement = document.createElement('small');
+ const identificaVoucherResgatado = document.createElement('small');
smallElement.className = 'opacity-50 m-0 px-4';
smallElement.textContent = `Voucher resgatado: ${tipoVoucherDoVoluntario}`;
txtResgateVoucher.appendChild(smallElement);
From 8259717148be7fa2df0886431a03c3af3cceaf6c Mon Sep 17 00:00:00 2001
From: FJ Tech <164685231+Tech-FestivalDoJapao@users.noreply.github.com>
Date: Fri, 20 Sep 2024 19:58:24 -0300
Subject: [PATCH 3/5] Update
fj-tech/src/js/voluntarios/festival/resgate_voucher.mjs
---
fj-tech/src/js/voluntarios/festival/resgate_voucher.mjs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fj-tech/src/js/voluntarios/festival/resgate_voucher.mjs b/fj-tech/src/js/voluntarios/festival/resgate_voucher.mjs
index f427d3e6..3f8024e8 100644
--- a/fj-tech/src/js/voluntarios/festival/resgate_voucher.mjs
+++ b/fj-tech/src/js/voluntarios/festival/resgate_voucher.mjs
@@ -51,7 +51,7 @@ document.getElementById("corpoTabelaDeListagemDeVoluntarios").addEventListener("
// Exibe o tipo de voucher resgatado pelo voluntário
const identificaVoucherResgatado = document.createElement('small');
- smallElement.className = 'opacity-50 m-0 px-4';
+ identificaVoucherResgatado.className = 'opacity-50 m-0 px-4';
smallElement.textContent = `Voucher resgatado: ${tipoVoucherDoVoluntario}`;
txtResgateVoucher.appendChild(smallElement);
bloquearResgateVoucher();
From b88cac75400e10a1fc0a10b3e7ceb9bf1fdf3239 Mon Sep 17 00:00:00 2001
From: FJ Tech <164685231+Tech-FestivalDoJapao@users.noreply.github.com>
Date: Fri, 20 Sep 2024 19:58:38 -0300
Subject: [PATCH 4/5] Update
fj-tech/src/js/voluntarios/festival/resgate_voucher.mjs
---
fj-tech/src/js/voluntarios/festival/resgate_voucher.mjs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fj-tech/src/js/voluntarios/festival/resgate_voucher.mjs b/fj-tech/src/js/voluntarios/festival/resgate_voucher.mjs
index 3f8024e8..fa1c23df 100644
--- a/fj-tech/src/js/voluntarios/festival/resgate_voucher.mjs
+++ b/fj-tech/src/js/voluntarios/festival/resgate_voucher.mjs
@@ -52,7 +52,7 @@ document.getElementById("corpoTabelaDeListagemDeVoluntarios").addEventListener("
// Exibe o tipo de voucher resgatado pelo voluntário
const identificaVoucherResgatado = document.createElement('small');
identificaVoucherResgatado.className = 'opacity-50 m-0 px-4';
- smallElement.textContent = `Voucher resgatado: ${tipoVoucherDoVoluntario}`;
+ identificaVoucherResgatado.textContent = `Voucher resgatado: ${tipoVoucherDoVoluntario}`;
txtResgateVoucher.appendChild(smallElement);
bloquearResgateVoucher();
}).catch((erro) => {
From 0a813b6483272f82eee064af6e878879f81c37b9 Mon Sep 17 00:00:00 2001
From: FJ Tech <164685231+Tech-FestivalDoJapao@users.noreply.github.com>
Date: Fri, 20 Sep 2024 19:58:47 -0300
Subject: [PATCH 5/5] Update
fj-tech/src/js/voluntarios/festival/resgate_voucher.mjs
---
fj-tech/src/js/voluntarios/festival/resgate_voucher.mjs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fj-tech/src/js/voluntarios/festival/resgate_voucher.mjs b/fj-tech/src/js/voluntarios/festival/resgate_voucher.mjs
index fa1c23df..7fa2a900 100644
--- a/fj-tech/src/js/voluntarios/festival/resgate_voucher.mjs
+++ b/fj-tech/src/js/voluntarios/festival/resgate_voucher.mjs
@@ -53,7 +53,7 @@ document.getElementById("corpoTabelaDeListagemDeVoluntarios").addEventListener("
const identificaVoucherResgatado = document.createElement('small');
identificaVoucherResgatado.className = 'opacity-50 m-0 px-4';
identificaVoucherResgatado.textContent = `Voucher resgatado: ${tipoVoucherDoVoluntario}`;
- txtResgateVoucher.appendChild(smallElement);
+ txtResgateVoucher.appendChild(identificaVoucherResgatado);
bloquearResgateVoucher();
}).catch((erro) => {
console.error("Erro ao resgatar voucher: ", erro);