From d8a0c6e1638f20d39bd4b901b58266c36a69a667 Mon Sep 17 00:00:00 2001 From: Mohamed Aziz Mejri Date: Thu, 30 Oct 2025 19:27:56 +0100 Subject: [PATCH] fix : hiding upgrade banner on unrelated errors (#1667) This PR solves the issue #1666 To solve this i removed the upgrade link from the general case since errors related to pro mode are already handled in the specific if-blocks --- ## Summary by cubic Hide the Dyad Pro upgrade banner on termination errors to reduce confusion. The generic upgrade link in ChatErrorBox is now suppressed when the error includes "TypeError: terminated" and only shows when Pro is disabled otherwise. Written for commit 1edf665. Summary will update automatically on new commits. --- src/components/chat/ChatErrorBox.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/chat/ChatErrorBox.tsx b/src/components/chat/ChatErrorBox.tsx index 891b102..0a65921 100644 --- a/src/components/chat/ChatErrorBox.tsx +++ b/src/components/chat/ChatErrorBox.tsx @@ -99,7 +99,7 @@ export function ChatErrorBox({ {error}
- {!isDyadProEnabled && ( + {!isDyadProEnabled && !error.includes("TypeError: terminated") && ( )} - Read docs