Skip to content

Commit

Permalink
Merge pull request #28 from Tech-FestivalDoJapao/autofix/alert-20-165…
Browse files Browse the repository at this point in the history
…4167e7f

Fix code scanning alert #20: DOM text reinterpreted as HTML
  • Loading branch information
Tech-FestivalDoJapao authored Sep 20, 2024
2 parents fbcda1a + 0a813b6 commit 1efd9d1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion fj-tech/src/js/voluntarios/festival/resgate_voucher.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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 = `<small class="opacity-50 m-0 px-4">Voucher resgatado: ${tipoVoucherDoVoluntario}</small>`;
const identificaVoucherResgatado = document.createElement('small');
identificaVoucherResgatado.className = 'opacity-50 m-0 px-4';
identificaVoucherResgatado.textContent = `Voucher resgatado: ${tipoVoucherDoVoluntario}`;
txtResgateVoucher.appendChild(identificaVoucherResgatado);
bloquearResgateVoucher();
}).catch((erro) => {
console.error("Erro ao resgatar voucher: ", erro);
Expand Down

0 comments on commit 1efd9d1

Please sign in to comment.