Skip to content

πŸ“¨ The ultimate agentic social media scheduling tool πŸ€–

fix(frontend): keep the 402 response readable after the payment dialog

Gilad Resisid727ac0b64c3
diff --git a/apps/frontend/src/components/layout/layout.context.tsx b/apps/frontend/src/components/layout/layout.context.tsx
index 202da5804..876daa898 100644
--- a/apps/frontend/src/components/layout/layout.context.tsx
+++ b/apps/frontend/src/components/layout/layout.context.tsx
@@ -107,7 +107,7 @@ function LayoutContextInner(params: { children: ReactNode }) {
if (
await deleteDialog(
(
- await response.json()
+ await response.clone().json()
).message,
'Move to billing',
'Payment Required'