Skip to content

fix: Correct isInitialized check in hashAttributes and setExtensionData functions#39

Merged
alexs-mparticle merged 4 commits intodevelopmentfrom
fix/SQDSDKS-7606-is-initialized-fix
Aug 12, 2025
Merged

fix: Correct isInitialized check in hashAttributes and setExtensionData functions#39
alexs-mparticle merged 4 commits intodevelopmentfrom
fix/SQDSDKS-7606-is-initialized-fix

Conversation

@alexs-mparticle
Copy link
Collaborator

Summary

{provide a thorough description of the changes}

  • Fixes an improper check of isInitialized

Testing Plan

{explain how this has been tested, and what additional testing should be done}

  • Use a sample app to attempt a call to hashAttributes or setExtensionData.

@alexs-mparticle alexs-mparticle requested review from Copilot and rmi22186 and removed request for rmi22186 August 7, 2025 01:42
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes an incorrect function call check by removing parentheses from isInitialized() calls in two functions, changing them from function invocations to property access.

  • Corrects the isInitialized check in hashAttributes function from isInitialized() to isInitialized
  • Corrects the isInitialized check in setExtensionData function from isInitialized() to isInitialized

Copy link
Collaborator

@rmi22186 rmi22186 left a comment

Choose a reason for hiding this comment

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

Code looks fine. My concern is more about the tests.

Co-authored-by: Robert Ing <ring@mparticle.com>
@alexs-mparticle alexs-mparticle merged commit 3a13833 into development Aug 12, 2025
4 checks passed
github-actions bot pushed a commit that referenced this pull request Aug 12, 2025
## [1.6.3](v1.6.2...v1.6.3) (2025-08-12)

### Bug Fixes

* Correct isInitialized check in hashAttributes and setExtensionData functions ([#39](#39)) ([3a13833](3a13833))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants