mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-12-18 11:51:41 +03:00
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"
|
||
|
);
|
||
|
};
|