diff --git a/assets/js/MinterBoard.js b/assets/js/MinterBoard.js
index c315d6b..5e34cc0 100644
--- a/assets/js/MinterBoard.js
+++ b/assets/js/MinterBoard.js
@@ -72,7 +72,7 @@ const loadMinterBoardPage = async () => {
}
} else {
// No existing card found
- alert("No existing card found. Create a new card.");
+ console.log("No existing card found. Creating a new card.");
isExistingCard = false;
}
@@ -322,7 +322,7 @@ const createSkeletonCardHTML = (cardIdentifier) => {
// Function to check and fech an existing Minter Card if attempting to publish twice ----------------------------------------
const fetchExistingCard = async () => {
try {
- const response = await searchSimple('BLOG_POST', `${cardIdentifierPrefix}`, `${userState.accountName}`, 0)
+ const response = await searchSimple('BLOG_POST', `${cardIdentifierPrefix}`, `${userState.accountName}`, 0, 0, '', true)
console.log(`SEARCH_QDN_RESOURCES response: ${JSON.stringify(response, null, 2)}`)
@@ -330,7 +330,20 @@ const fetchExistingCard = async () => {
console.log("No cards found for the current user.")
return null
} else if (response.length === 1) { // we don't need to go through all of the rest of the checks and filtering nonsense if there's only a single result, just return it.
- return response[0]
+ const mostRecentCard = response[0]
+
+ const cardDataResponse = await qortalRequest({
+ action: "FETCH_QDN_RESOURCE",
+ name: userState.accountName, // User's account name
+ service: "BLOG_POST",
+ identifier: mostRecentCard.identifier
+ })
+
+ existingCardIdentifier = mostRecentCard.identifier
+ existingCardData = cardDataResponse
+
+ return cardDataResponse
+
}
const validatedCards = await Promise.all(
diff --git a/assets/js/Q-Mintership.js b/assets/js/Q-Mintership.js
index 4d90fd9..657c162 100644
--- a/assets/js/Q-Mintership.js
+++ b/assets/js/Q-Mintership.js
@@ -628,7 +628,7 @@ function clearInputs() {
document.getElementById('preview-container').innerHTML = ''
// Reset the Quill editor
- const quill = new Quill('editor')
+ const quill = new Quill('#editor')
quill.setContents([])
quill.setSelection(0)
diff --git a/index.html b/index.html
index 5447595..c730c6b 100644
--- a/index.html
+++ b/index.html
@@ -68,7 +68,7 @@
-
+
+ This is a patch update to fix loading of data into minter cards upon duplicates, and clearing message input on send in the forum.
+Q-Mintership v0.67beta
+Q-Mintership v0.68beta