mirror of
https://codeberg.org/vlw/freshdesk-filters.git
synced 2025-11-04 23:22:42 +01:00
fix: flipped comparison for agent name test
This commit is contained in:
parent
660d67effb
commit
c8e1f5c928
1 changed files with 1 additions and 1 deletions
|
|
@ -136,7 +136,7 @@ class FreshdeskFilters {
|
|||
// Check if this ticket is assigned to this agent
|
||||
const isCurrentAgent = await CONFIG.get(CONFIG.AGENT_NAME_REGEX) !== "true"
|
||||
// An agent name is explicitly defined
|
||||
? ticketAgentName !== agentName
|
||||
? ticketAgentName === agentName
|
||||
// Agent name(s) are defined with RegEx
|
||||
: new RegExp(agentName).test(ticketAgentName);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue