Skip to content

Commit

Permalink
fix: fix hook error
Browse files Browse the repository at this point in the history
  • Loading branch information
zmh-program authored Mar 18, 2024
1 parent cb11a54 commit 944fa28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/components/home/ModelMarket.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function getTags(model: Model): string[] {
}

export function getModelAvatar(avatar: string) {
return useMemo(() => (isUrl(avatar) ? avatar : `/icons/${avatar}`), [avatar]);
return isUrl(avatar) ? avatar : `/icons/${avatar}`;
}

function SearchBar({ value, onChange }: SearchBarProps) {
Expand Down

0 comments on commit 944fa28

Please sign in to comment.