diff options
Diffstat (limited to 'packages/web/src/components')
| -rw-r--r-- | packages/web/src/components/Share.tsx | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/packages/web/src/components/Share.tsx b/packages/web/src/components/Share.tsx index 12a734d13..e125912f6 100644 --- a/packages/web/src/components/Share.tsx +++ b/packages/web/src/components/Share.tsx @@ -801,7 +801,9 @@ export default function Share(props: { <div data-stat-icon title="opencode"> <IconOpencode width={16} height={16} /> </div> - <span>v${store.info?.version}</span> + <Show when={store.info?.version} fallback="v0.0.1"> + <span>v${store.info?.version}</span> + </Show> </li> </ul> </Show> @@ -1261,9 +1263,9 @@ export default function Share(props: { const path = createMemo(() => toolData()?.args.path !== data().rootDir ? stripWorkingDirectory( - toolData()?.args.path, - data().rootDir, - ) + toolData()?.args.path, + data().rootDir, + ) : toolData()?.args.path, ) @@ -1620,7 +1622,7 @@ export default function Share(props: { msg.role === "assistant" && part.type === "tool-invocation" && part.toolInvocation.toolName === - "todowrite" && + "todowrite" && part } > @@ -1686,7 +1688,7 @@ export default function Share(props: { msg.role === "assistant" && part.type === "tool-invocation" && part.toolInvocation.toolName === - "webfetch" && + "webfetch" && part } > |
