From b96451a06f97f5bf5c350d4ce708574aaf4c882f Mon Sep 17 00:00:00 2001 From: "Ian Clarke (aider)" Date: Wed, 11 Dec 2024 15:01:19 -0600 Subject: [PATCH] refactor: Replace fragile text comparison with step index check --- hugo-site/layouts/shortcodes/summary-delta-sync/sync.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hugo-site/layouts/shortcodes/summary-delta-sync/sync.html b/hugo-site/layouts/shortcodes/summary-delta-sync/sync.html index 45e6fe01..96164961 100644 --- a/hugo-site/layouts/shortcodes/summary-delta-sync/sync.html +++ b/hugo-site/layouts/shortcodes/summary-delta-sync/sync.html @@ -671,7 +671,7 @@ caption.textContent = stepDescriptions[currentStep]; // Disable next button when showing the final step - if (caption.textContent === "Peers exchange and merge deltas to achieve consistent state.") { + if (currentStep >= stepDescriptions.length - 1) { document.getElementById('syncNextBtn').disabled = true; } }