TP-71465 | AM/TL check fix
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user