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:
Arthur Lu 2022-12-03 00:14:49 +00:00
parent 89dfe3293d
commit dbbd14399e
2 changed files with 1 additions and 2 deletions

View File

@ -16,7 +16,6 @@ class ReviewCard extends HTMLElement {
font-family: Century Gothic;
margin: 0;
padding: 0;
overflow-wrap: anywhere;
cursor: pointer;
}

View File

@ -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){