mirror of
				https://github.com/cse110-fa22-group29/cse110-fa22-group29.git
				synced 2025-10-30 19:46:49 +00:00 
			
		
		
		
	fix updateReviewToStorage bug with capitalized tag handling,
remove unnecessary overflow-wrap in ReviewCard.js Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
		| @@ -16,7 +16,6 @@ class ReviewCard extends HTMLElement { | ||||
| 			font-family: Century Gothic; | ||||
| 			margin: 0; | ||||
| 			padding: 0; | ||||
| 			overflow-wrap: anywhere; | ||||
| 			cursor: pointer; | ||||
| 		} | ||||
| 		 | ||||
|   | ||||
| @@ -101,7 +101,7 @@ export function updateReviewToStorage(ID, review){ | ||||
| 	let repeatedTags = review["tags"].filter(x => oldReview["tags"].includes(x)); | ||||
| 	let tagArr = []; | ||||
| 	for (let i in repeatedTags){ | ||||
| 		tagArr = JSON.parse(localStorage.getItem(`!${repeatedTags[i]}`)); | ||||
| 		tagArr = JSON.parse(localStorage.getItem(`!${repeatedTags[i]}`.toLocaleLowerCase())); | ||||
| 		if(tagArr.length == 1){ | ||||
| 			for (let j in tagArr){ | ||||
| 				if(tagArr[j] == ID){ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user