Skip to content

Commit

Permalink
better handle if rule in requestBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
ad-astra-via committed Jun 5, 2024
1 parent c1cb239 commit d8d4f20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/requestBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function getToolRequest(
if (!Number.isInteger(sessionCounter)) {
sessionCounter = 0
}
if (typeof client !== 'undefined' && client) {
if (client) {
// Determine if the session is engaged to set the 'seg' value
const pageviewCounter = parseInt(client.get('pageviewCounter') || '0')
const conversionCounter = parseInt(client.get('conversionCounter') || '0')
Expand Down

0 comments on commit d8d4f20

Please sign in to comment.