Skip to content

Commit

Permalink
linter did not like double negation
Browse files Browse the repository at this point in the history
  • Loading branch information
jay-hodgson committed Sep 25, 2024
1 parent c0fc40d commit 9a9b6b9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export const SynapseChat: React.FunctionComponent<SynapseChatProps> = ({
{
//enabled if there is a pending interaction
enabled: !!currentlyProcessingJobId,
refetchInterval: !!currentlyProcessingJobId ? 1000 : false, // Re-fetch every second if enabled
refetchInterval: currentlyProcessingJobId ? 1000 : false, // Re-fetch every second if enabled
refetchIntervalInBackground: true, // Continue polling even when the tab is not active
},
)
Expand Down

0 comments on commit 9a9b6b9

Please sign in to comment.