Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
TypeScript agentic-aiagentsaiai-agentsaiagentsdeveloper-toolsfunction-callinggpt-4javascriptjsllmllmopsmcppythonremote-mcp-serverssetypescript
fix(docs): retry Decimal.show() if widget script hasn't loaded yet
Sushmithamallesh39d8a5991242
diff --git a/docs/components/ask-ai-button.tsx b/docs/components/ask-ai-button.tsxindex d3dc0fe87..19a45a342 100644--- a/docs/components/ask-ai-button.tsx+++ b/docs/components/ask-ai-button.tsx@@ -12,7 +12,13 @@ function getDecimal() {}function showDecimalWidget() {- getDecimal()?.show();+ const decimal = getDecimal();+ if (decimal) {+ decimal.show();+ return;+ }+ // Widget script may not have loaded yet — retry once after a short delay+ setTimeout(() => getDecimal()?.show(), 500);}function useIsMac() {