Skip to content

Commit

Permalink
🐛 fix: build error
Browse files Browse the repository at this point in the history
  • Loading branch information
rdmclin2 committed Jul 7, 2024
1 parent 73b1b48 commit e64fdda
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Empty file removed src/constants/dance.ts
Empty file.
2 changes: 1 addition & 1 deletion src/store/session/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ export const createSessionStore: StateCreator<SessionStore, [['zustand/devtools'
}
}

const latestMsg = contextMessages.filter((s) => s.role === 'user').at(-1);
const latestMsg = contextMessages.findLast((s) => s.role === 'user');

if (!latestMsg) return;

Expand Down

0 comments on commit e64fdda

Please sign in to comment.