TP-71465 | AM/TL check fix

This commit is contained in:
yashmantri
2024-08-31 00:38:43 +05:30
parent 31cc384c0d
commit b51eff451c

View File

@@ -273,10 +273,7 @@ const useFirestoreUpdates = () => {
};
const subscribeToActiveCallDetailsUnsubscribe = () => {
let refId = user?.referenceId;
if (isTeamLead && selectedAgent?.referenceId !== MY_CASE_ITEM.referenceId) {
refId = selectedAgent?.referenceId;
}
const refId = user?.referenceId;
const collectionPath = `allocations/${refId}/agentActivity/callDetails`;
return subscribeToDoc(handleActiveCallDetails, collectionPath);
};