mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-12-18 11:51:41 +03:00
7e1e13fab5
* feat(feed brain): add pending message * feat: add 'filesUploading' translation * feat(chatPage): update tests
9 lines
243 B
TypeScript
9 lines
243 B
TypeScript
import { ChatItem } from "../../../types";
|
|
|
|
export const checkIfHasPendingRequest = (chatItems: ChatItem[]): boolean => {
|
|
return chatItems.some(
|
|
(item) =>
|
|
item.item_type === "NOTIFICATION" && item.body.status === "Pending"
|
|
);
|
|
};
|