@devries-cameron20 / composio Mirror · read-only / commits / 39d8a5991
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 22, 08:15 UTC

fix(docs): retry Decimal.show() if widget script hasn't loaded yet

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Sushmithamallesh committed Feb 19, 2026 at 16:24 UTC 39d8a5991242348ded5344f1802293afe1fc1ca8
1 file changed +7 -1
docs/components/ask-ai-button.tsx
+7 -1
@@ -12,7 +12,13 @@ function getDecimal() {
12 }
13
14 function showDecimalWidget() {
15 - getDecimal()?.show();
15 + const decimal = getDecimal();
16 + if (decimal) {
17 + decimal.show();
18 + return;
19 + }
20 + // Widget script may not have loaded yet — retry once after a short delay
21 + setTimeout(() => getDecimal()?.show(), 500);
22 }
23
24 function useIsMac() {