π¨ The ultimate agentic social media scheduling tool π€
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
fix(farcaster): keep polling the signer status on network errors
Gilad Resisi03fab81ad997
diff --git a/apps/frontend/src/components/auth/providers/farcaster.provider.tsx b/apps/frontend/src/components/auth/providers/farcaster.provider.tsxindex 2fbc24a36..5d0d281cb 100644--- a/apps/frontend/src/components/auth/providers/farcaster.provider.tsx+++ b/apps/frontend/src/components/auth/providers/farcaster.provider.tsx@@ -27,12 +27,18 @@ export const ButtonCaster: FC<{async function* load(signerUuid: string) {while (true) {- const data = await (- await fetch(- `/auth/farcaster/signer?signerUuid=${encodeURIComponent(signerUuid)}`- )- ).json();- yield data;+ try {+ yield await (+ await fetch(+ `/auth/farcaster/signer?signerUuid=${encodeURIComponent(+ signerUuid+ )}`+ )+ ).json();+ } catch (err) {+ // network blip, keep polling until approved or timed out+ yield {};+ }}}