diff --git a/apps/mobile/src/agent-ui.tsx b/apps/mobile/src/agent-ui.tsx index 3e1b8915b..e7034b5d2 100644 --- a/apps/mobile/src/agent-ui.tsx +++ b/apps/mobile/src/agent-ui.tsx @@ -78,7 +78,7 @@ export function AgentStatus() { return ( - {error && ( + {!!error && ( @@ -523,7 +523,7 @@ export function TaskDetail({ taskId }: { taskId: string }) { ))} )} - {task.result && ( + {!!task.result && ( {resultSummary(task.result)} @@ -1036,7 +1036,7 @@ export function IdeasScreen() { {idea.title} Started - {idea.taskId && } + {!!idea.taskId && } ))} @@ -1582,7 +1582,7 @@ function MonitorCard({ monitor, onOpenTask }: { monitor: Monitor; onOpenTask?: ( Last check: {stamp(monitor.lastCheckedAt)} {monitor.status === "active" ? `\nNext check: ${stamp(monitor.nextCheckAt)}` : ""} - {monitor.lastValue && ( + {!!monitor.lastValue && ( {monitor.lastValue} diff --git a/apps/mobile/src/chat.tsx b/apps/mobile/src/chat.tsx index 26f3d36e3..683332b10 100644 --- a/apps/mobile/src/chat.tsx +++ b/apps/mobile/src/chat.tsx @@ -540,7 +540,7 @@ export function ChatScreen({ )} - {error && ( + {!!error && ( } + {!!error && } @@ -898,7 +898,7 @@ export function BrowserScreen() { {b.status} - {b.previewUrl && ( + {!!b.previewUrl && ( ))} - {error && ( + {!!error && ( diff --git a/apps/mobile/src/ui.tsx b/apps/mobile/src/ui.tsx index e9e95afa1..ce36605cb 100644 --- a/apps/mobile/src/ui.tsx +++ b/apps/mobile/src/ui.tsx @@ -295,7 +295,7 @@ export function Sheet({ > {title} - {subtitle && {subtitle}} + {!!subtitle && {subtitle}} @@ -393,7 +393,7 @@ export function LinkRow({ {title} - {detail && {detail}} + {!!detail && {detail}}