π¨ The ultimate agentic social media scheduling tool π€
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
fix(frontend): stay on Add Channel when the 402 dialog is cancelled
Gilad Resisic033aff59fed
diff --git a/apps/frontend/src/components/launches/add.provider.component.tsx b/apps/frontend/src/components/launches/add.provider.component.tsxindex 2a4809176..b8db5fc1a 100644--- a/apps/frontend/src/components/launches/add.provider.component.tsx+++ b/apps/frontend/src/components/launches/add.provider.component.tsx@@ -478,11 +478,13 @@ export const AddProviderComponent: FC<{].filter(Boolean).join('&');- const { url, err } = await (- await fetch(- `/integrations/social/${identifier}${params ? `?${params}` : ''}`- )- ).json();+ const response = await fetch(+ `/integrations/social/${identifier}${params ? `?${params}` : ''}`+ );+ if (response.status === 402) {+ return;+ }+ const { url, err } = await response.json();if (err) {toaster.show(t(