From 715e26a9eb219808d5c899d418e1d596f9318f61 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Mon, 22 Jun 2026 16:59:19 +0000
Subject: [PATCH] =Debugging and implementing the Checkout.js logic. Will be uploading to test integration with square next.
---
assets/js/concise/Queue.js | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/assets/js/concise/Queue.js b/assets/js/concise/Queue.js
index 2b8d3b6..e1f1a04 100644
--- a/assets/js/concise/Queue.js
+++ b/assets/js/concise/Queue.js
@@ -790,7 +790,8 @@
this.ui.refresh.button.classList.add('fetching');
this.store.clearCache();
let response = await this.store.fetch();
- if (response.status === 429) {
+
+ if (Object.hasOwn(response, 'status') && response.status === 429) {
console.log('Too many requests. Waiting 30 seconds');
this.stopPolling();
this.startCountdown(30, () => this.runPollCycle());
--
Gitblit v1.10.0