Skip to content

Commit

Permalink
Revert "filtered unintended commas out of cardList (hackforla#1601)"
Browse files Browse the repository at this point in the history
This reverts commit ed22cab.
  • Loading branch information
jbubar committed May 26, 2021
1 parent 9fc22fb commit 3847db1
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions pages/wins/wins.html
Original file line number Diff line number Diff line change
Expand Up @@ -269,23 +269,8 @@
}
}


function insertIcons(cloneCardTemplate, cardClass, cardString) {
let initialCardList = cardString.split(',').map(item => item.trim())
let otherWinsText = [];
let cardList = [];

initialCardList.forEach(win => {
if (badgeIcons.hasOwnProperty(win)){
cardList.push(win);
} else if (win === " "){
return
} else {
otherWinsText.push(win);
}
});
cardList.push(otherWinsText.join(", "));

let cardList = cardString.split(',').map(item => item.trim())
const SVG_FILE_PATH = `/assets/images/wins-page/wins-badges/`

cardList.map(function (item) {
Expand Down Expand Up @@ -494,7 +479,6 @@
const item = string.trim()
const SVG_FILE_PATH = `/assets/images/wins-page/wins-badges/`


if (badgeIcons.hasOwnProperty(item)) {
cloneCardTemplate.insertAdjacentHTML('beforeend',
`<div class='overlay-item-container'>
Expand All @@ -514,7 +498,6 @@
)
return
}

})
}

Expand Down

0 comments on commit 3847db1

Please sign in to comment.