We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c802199 commit e29bcdeCopy full SHA for e29bcde
1 file changed
src/automation/voting.js
@@ -65,8 +65,9 @@ async function getCompanyList(webContents, sendLog) {
65
66
let hasEGift = false;
67
if (cells.length > 4) {
68
- // innerText of 5th cell contains 'Y' if eGift is eligible
69
- hasEGift = cells[4].innerText.includes('Y') || cells[4].innerHTML.includes('Y');
+ // innerText of 5th cell contains 'Y' if eGift is eligible.
+ // Do NOT use innerHTML as it may contain hidden comments with 'Y'.
70
+ hasEGift = cells[4].innerText.includes('Y');
71
}
72
73
return {
0 commit comments