Skip to content

Commit 6be648a

Browse files
authored
Modified Ask.tsx to disable upload if user not Authenticated / user not Logged in (#2545)
Modified loggedIn to !loggedIn in Line 288 such that it follows the same logic as Chat.tsx
1 parent 1b9885c commit 6be648a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/frontend/src/pages/ask/Ask.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ export function Component(): JSX.Element {
285285
</Helmet>
286286
<div className={styles.askTopSection}>
287287
<div className={styles.commandsContainer}>
288-
{showUserUpload && <UploadFile className={styles.commandButton} disabled={loggedIn} />}
288+
{showUserUpload && <UploadFile className={styles.commandButton} disabled={!loggedIn} />}
289289
<SettingsButton className={styles.commandButton} onClick={() => setIsConfigPanelOpen(!isConfigPanelOpen)} />
290290
</div>
291291
<h1 className={styles.askTitle}>{t("askTitle")}</h1>

0 commit comments

Comments
 (0)