diff options
Diffstat (limited to 'packages/merchant-backend-ui/src/pages/OfferTip.tsx')
-rw-r--r-- | packages/merchant-backend-ui/src/pages/OfferTip.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/merchant-backend-ui/src/pages/OfferTip.tsx b/packages/merchant-backend-ui/src/pages/OfferTip.tsx index d32072282..cb3ce33fd 100644 --- a/packages/merchant-backend-ui/src/pages/OfferTip.tsx +++ b/packages/merchant-backend-ui/src/pages/OfferTip.tsx @@ -62,14 +62,16 @@ export function Head(): VNode { export function OfferTip({ tipURI, qr_code, tip_status_url }: Props): VNode { useEffect(() => { + const longpollDelayMs = 60 * 1000; + const delayMs = 500; let checkUrl: URL; try { checkUrl = new URL(tip_status_url ? tip_status_url : "{{& tip_status_url }}"); } catch (e) { return; } + checkUrl.searchParams.set("timeout_ms", longpollDelayMs.toString()); - const delayMs = 500; function check() { let retried = false; function retryOnce() { |