Skip to content

Commit

Permalink
Merge pull request ChatGPTNextWeb#5442 from DDDDD12138/fix-typo
Browse files Browse the repository at this point in the history
chore: correct typo
  • Loading branch information
Dogtiti authored Sep 15, 2024
2 parents 9e5d92d + e986088 commit 027e5ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/components/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -520,8 +520,8 @@ export function ChatActions(props: {

// if current model is not available
// switch to first available model
const isUnavaliableModel = !models.some((m) => m.name === currentModel);
if (isUnavaliableModel && models.length > 0) {
const isUnavailableModel = !models.some((m) => m.name === currentModel);
if (isUnavailableModel && models.length > 0) {
// show next model to default model if exist
let nextModel = models.find((model) => model.isDefault) || models[0];
chatStore.updateCurrentSession((session) => {
Expand Down

0 comments on commit 027e5ad

Please sign in to comment.