Skip to content

Commit

Permalink
refactor: Replace fragile text comparison with step index check
Browse files Browse the repository at this point in the history
  • Loading branch information
sanity committed Dec 11, 2024
1 parent 21c5bc5 commit b96451a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hugo-site/layouts/shortcodes/summary-delta-sync/sync.html
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit b96451a

Please sign in to comment.