Skip to content

Commit 9b922fc

Browse files
committed
Empty better than null
1 parent f64189c commit 9b922fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webview-ui/src/components/chat/ErrorRow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export const ErrorRow = memo(
9898
case "api_failure":
9999
return t("chat:apiRequest.failed")
100100
case "api_req_retry_delayed":
101-
return t("chat:apiRequest.errorTitle", { code: code ? ` · ${code}` : null })
101+
return t("chat:apiRequest.errorTitle", { code: code ? ` · ${code}` : "" })
102102
case "streaming_failed":
103103
return t("chat:apiRequest.streamingFailed")
104104
case "cancelled":

0 commit comments

Comments
 (0)