diff --git a/assets/js/MinterBoard.js b/assets/js/MinterBoard.js index 0599c09..6b1b3f2 100644 --- a/assets/js/MinterBoard.js +++ b/assets/js/MinterBoard.js @@ -257,14 +257,14 @@ const loadCards = async () => { } if (selectedSort === 'name') { - // Sort alphabetically by the creator’s name + // Sort alphabetically by the creator's name finalCards.sort((a, b) => { const nameA = a.name?.toLowerCase() || '' const nameB = b.name?.toLowerCase() || '' return nameA.localeCompare(nameB) }) } 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) { card.newestCommentTimestamp = await getNewestCommentTimestamp(card.identifier) } @@ -1515,7 +1515,7 @@ const getNewestCommentTimestamp = async (cardIdentifier) => { // fetchCommentsForCard returns resources each with at least 'created' or 'updated' const comments = await fetchCommentsForCard(cardIdentifier) 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 } // The newest can be determined by comparing 'updated' or 'created' diff --git a/assets/js/QortalApi.js b/assets/js/QortalApi.js index 2cf1208..8346b29 100644 --- a/assets/js/QortalApi.js +++ b/assets/js/QortalApi.js @@ -1218,7 +1218,7 @@ const renderData = async (service, name, identifier) => { } catch (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.' } } @@ -1339,7 +1339,7 @@ const processTransaction = async (signedTransaction) => { const rawText = await response.text(); 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; try { parsed = JSON.parse(rawText);