Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: if condition with gtagId #230

Merged
merged 1 commit into from
Jul 10, 2021
Merged

Conversation

JackywithaWhiteDog
Copy link
Contributor

@JackywithaWhiteDog JackywithaWhiteDog commented Jul 10, 2021

Since the site variables are passed with the key context in a dictionary, the if condition .Site.Params.gtagId should be modified to .context.Site.Params.gtagId to check the gtagId properly.

Related to issue #228.

@sonarcloud
Copy link

sonarcloud bot commented Jul 10, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@ghost
Copy link

ghost commented Jul 10, 2021

Good catch, just tested on mine and change works as expected

@lxndrblz lxndrblz self-assigned this Jul 10, 2021
@lxndrblz lxndrblz added the bug Something isn't working label Jul 10, 2021
Copy link
Owner

@lxndrblz lxndrblz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JackywithaWhiteDog Thanks for the fix. I can confirm it now works as intended.

@lxndrblz lxndrblz merged commit 9c59364 into lxndrblz:master Jul 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants