Skip to content

Commit

Permalink
fix: two console errors from #328 (#359)
Browse files Browse the repository at this point in the history
  • Loading branch information
lihebi committed Jul 7, 2023
1 parent 9c2aa1e commit 09bd28e
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions ui/src/components/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ function SidebarSettings() {
<FormControlLabel
control={
<Switch
checked={(apiKey && autoCompletion) as boolean}
checked={!!(apiKey && autoCompletion)}
size="small"
color="warning"
onChange={(event: React.ChangeEvent<HTMLInputElement>) => {
Expand All @@ -208,16 +208,18 @@ function SidebarSettings() {
disableInteractive
sx={{ display: "inline" }}
>
<IconButton
size="small"
sx={{ display: "inline" }}
onClick={() => setSettingOpen(true)}
disabled={isGuest}
>
<HelpOutlineOutlinedIcon
sx={{ fontSize: 14 }}
></HelpOutlineOutlinedIcon>
</IconButton>
<Box>
<IconButton
size="small"
sx={{ display: "inline" }}
onClick={() => setSettingOpen(true)}
disabled={isGuest}
>
<HelpOutlineOutlinedIcon
sx={{ fontSize: 14 }}
></HelpOutlineOutlinedIcon>
</IconButton>
</Box>
</Tooltip>
</>
}
Expand Down

0 comments on commit 09bd28e

Please sign in to comment.