Fix warning - "ambiguous unicode characters"
This commit is contained in:
parent
7cb0064242
commit
f10e0038f7
@ -257,14 +257,14 @@ const loadCards = async () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (selectedSort === 'name') {
|
if (selectedSort === 'name') {
|
||||||
// Sort alphabetically by the creator’s name
|
// Sort alphabetically by the creator's name
|
||||||
finalCards.sort((a, b) => {
|
finalCards.sort((a, b) => {
|
||||||
const nameA = a.name?.toLowerCase() || ''
|
const nameA = a.name?.toLowerCase() || ''
|
||||||
const nameB = b.name?.toLowerCase() || ''
|
const nameB = b.name?.toLowerCase() || ''
|
||||||
return nameA.localeCompare(nameB)
|
return nameA.localeCompare(nameB)
|
||||||
})
|
})
|
||||||
} else if (selectedSort === 'recent-comments') {
|
} else if (selectedSort === 'recent-comments') {
|
||||||
// We need each card’s newest comment timestamp for sorting
|
// We need each card's newest comment timestamp for sorting
|
||||||
for (let card of finalCards) {
|
for (let card of finalCards) {
|
||||||
card.newestCommentTimestamp = await getNewestCommentTimestamp(card.identifier)
|
card.newestCommentTimestamp = await getNewestCommentTimestamp(card.identifier)
|
||||||
}
|
}
|
||||||
@ -1515,7 +1515,7 @@ const getNewestCommentTimestamp = async (cardIdentifier) => {
|
|||||||
// fetchCommentsForCard returns resources each with at least 'created' or 'updated'
|
// fetchCommentsForCard returns resources each with at least 'created' or 'updated'
|
||||||
const comments = await fetchCommentsForCard(cardIdentifier)
|
const comments = await fetchCommentsForCard(cardIdentifier)
|
||||||
if (!comments || comments.length === 0) {
|
if (!comments || comments.length === 0) {
|
||||||
// No comments => fallback to 0 (or card’s own date, if you like)
|
// No comments => fallback to 0 (or card's own date, if you like)
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
// The newest can be determined by comparing 'updated' or 'created'
|
// The newest can be determined by comparing 'updated' or 'created'
|
||||||
|
@ -1218,7 +1218,7 @@ const renderData = async (service, name, identifier) => {
|
|||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Error rendering data:', error)
|
console.error('Error rendering data:', error)
|
||||||
// Return the custom message when there’s an error or invalid data
|
// Return the custom message when there's an error or invalid data
|
||||||
return 'Requested data is either missing or still being obtained from QDN... please try again in a short time.'
|
return 'Requested data is either missing or still being obtained from QDN... please try again in a short time.'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1339,7 +1339,7 @@ const processTransaction = async (signedTransaction) => {
|
|||||||
const rawText = await response.text();
|
const rawText = await response.text();
|
||||||
console.log("Raw text from server (version 2 means JSON string in text):", rawText)
|
console.log("Raw text from server (version 2 means JSON string in text):", rawText)
|
||||||
|
|
||||||
// Attempt to parse if it’s indeed JSON
|
// Attempt to parse if it's indeed JSON
|
||||||
let parsed;
|
let parsed;
|
||||||
try {
|
try {
|
||||||
parsed = JSON.parse(rawText);
|
parsed = JSON.parse(rawText);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user