diff options
Diffstat (limited to 'packages/app/src/hooks')
| -rw-r--r-- | packages/app/src/hooks/use-providers.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/app/src/hooks/use-providers.ts b/packages/app/src/hooks/use-providers.ts index 4a73fa055..55184aa1b 100644 --- a/packages/app/src/hooks/use-providers.ts +++ b/packages/app/src/hooks/use-providers.ts @@ -1,5 +1,5 @@ import { useGlobalSync } from "@/context/global-sync" -import { base64Decode } from "@opencode-ai/util/encode" +import { decode64 } from "@/utils/base64" import { useParams } from "@solidjs/router" import { createMemo } from "solid-js" @@ -8,7 +8,7 @@ export const popularProviders = ["opencode", "anthropic", "github-copilot", "ope export function useProviders() { const globalSync = useGlobalSync() const params = useParams() - const currentDirectory = createMemo(() => base64Decode(params.dir ?? "")) + const currentDirectory = createMemo(() => decode64(params.dir) ?? "") const providers = createMemo(() => { if (currentDirectory()) { const [projectStore] = globalSync.child(currentDirectory()) |
