Skip to content

Commit

Permalink
Deleted Console.logs
Browse files Browse the repository at this point in the history
  • Loading branch information
tunxu committed Jun 10, 2024
1 parent 7d9b12a commit 4da8d54
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions warenkorb.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,16 +90,12 @@
let result = maxcolor.filter(item => !set1.has(item.StarID))

//render random product suggestion if more than one element in the suggestion dataset
if(result.length > 1){
if(result.length > 1){
const ran = Math.floor(Math.random() * (result.length))
console.log(Math.floor(Math.random() * (result.length)))
var ran2 = ran
while(ran === ran2){
ran2 = Math.floor(Math.random() * (result.length))
}
console.log(result.length)
console.log('random1 = ', ran)
console.log('random2 = ', ran2)
const prod_suggestion = [result[ran], result[ran2]]
render(prod_suggestion, '[type="text/x-handlebars-suggestion"]')
}
Expand Down

0 comments on commit 4da8d54

Please sign in to comment.