Skip to content

Commit

Permalink
fix: word error
Browse files Browse the repository at this point in the history
  • Loading branch information
Dogtiti committed Jul 4, 2024
1 parent 6a71570 commit ef1dd80
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/components/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ export function ChatActions(props: {
});
showToast(s[0]);
}}
setSeleted={(value) => {
setSelected={(value) => {
const [name, providerName] = value.split("@");
return (
name === currentModel && providerName === currentProviderName
Expand Down
6 changes: 3 additions & 3 deletions app/components/ui-lib.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -447,15 +447,15 @@ export function Selector<T>(props: {
onSelection?: (selection: T[]) => void;
onClose?: () => void;
multiple?: boolean;
setSeleted?: (value: T) => boolean;
setSelected?: (value: T) => boolean;
}) {
return (
<div className={styles["selector"]} onClick={() => props.onClose?.()}>
<div className={styles["selector-content"]}>
<List>
{props.items.map((item, i) => {
const selected = props?.setSeleted
? props?.setSeleted?.(item.value)
const selected = props?.setSelected
? props?.setSelected?.(item.value)
: props.defaultSelectedValue === item.value;
return (
<ListItem
Expand Down

0 comments on commit ef1dd80

Please sign in to comment.