From 556bb9248192a503e601cfd193a8a67f2a8caeb0 Mon Sep 17 00:00:00 2001 From: polina4096 Date: Sun, 19 Jan 2025 21:21:41 +0300 Subject: [PATCH] Disable "connect" action if no accounts are logged --- packages/repl/src/components/runner/Runner.tsx | 3 ++- packages/repl/src/store/accounts.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/repl/src/components/runner/Runner.tsx b/packages/repl/src/components/runner/Runner.tsx index 19cd2d9..18b0fe8 100644 --- a/packages/repl/src/components/runner/Runner.tsx +++ b/packages/repl/src/components/runner/Runner.tsx @@ -279,6 +279,7 @@ export function Runner(props: { isResizing: boolean }) { -
+
('accounts') -export const $activeAccountId = linkedAtom('activeAccountId') +export const $activeAccountId = linkedAtom('activeAccountId') export const $activeAccount = computed([$accounts, $activeAccountId], (accounts, activeAccountId) => { if (!activeAccountId) return null