Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

fix cancel download on setup screen

Vanalitebbe62d8e90b5
diff --git a/web-app/src/containers/SetupScreen.tsx b/web-app/src/containers/SetupScreen.tsx
index f6159fea7..389a00083 100644
--- a/web-app/src/containers/SetupScreen.tsx
+++ b/web-app/src/containers/SetupScreen.tsx
@@ -204,6 +204,12 @@ function SetupScreen() {
huggingfaceToken,
])
+ useEffect(() => {
+ if (quickStartInitiated && !isDownloading && !isDownloaded) {
+ setQuickStartInitiated(false)
+ }
+ }, [quickStartInitiated, isDownloading, isDownloaded])
+
// Navigate to chat after download completes
useEffect(() => {
if (quickStartInitiated && isDownloaded && defaultVariant) {