one final tweak

This commit is contained in:
crowetic 2024-12-11 17:56:25 -08:00
parent 0c36b3ab7b
commit df7602ca47

View File

@ -58,8 +58,8 @@ async function loadMinterBoardPage() {
document.getElementById("publish-card-button").addEventListener("click", async () => { document.getElementById("publish-card-button").addEventListener("click", async () => {
try { try {
await fetchExistingCard(); // await fetchExistingCard();
const cardIdentifier = existingCardIdentifier const cardIdentifier = await fetchExistingCard().identifier
if (cardIdentifier) { if (cardIdentifier) {
// Update existing card // Update existing card
const updateCard = confirm("A card already exists. Do you want to update it?"); const updateCard = confirm("A card already exists. Do you want to update it?");