Skip to content

Commit

Permalink
dynamicTitle ternary condition edit
Browse files Browse the repository at this point in the history
  • Loading branch information
shrouti1507 committed Aug 9, 2021
1 parent 1d495ff commit a053142
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions integrations/Qualtrics/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,14 @@ class Qualtrics {
}

if (this.enableGenericPageTitle) {
window._qsie.push("viewed a page");
window._qsie.push("Viewed a Page");
return;
}

const { name, category, properties } = message;
const categoryField = category
? category
: properties && properties.category
? properties.category
: null;
const categoryField =
category ||
(properties && properties.category ? properties.category : null);

if (!categoryField && !name) {
logger.debug(
Expand Down

0 comments on commit a053142

Please sign in to comment.