Skip to content

Commit

Permalink
clase crashlytics
Browse files Browse the repository at this point in the history
  • Loading branch information
Damian Morales authored and christian97dd committed Dec 18, 2023
1 parent c17c5c7 commit 6564d72
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

## [Unreleased]

## [2.0.0] - 2023-12-18

### Breaking Changes

### Changed

- No longer returns functions. Now returns a class that it's needed to instance in order to use methods.


## [1.0.1] - 2023-09-26

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion lib/crashlytics.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class Crashlytics {
async initialize() {
try {
/* istanbul ignore next */
if(!!Object.keys(this.userData).length) return null;
if (!!this.userData && !!Object.keys(this.userData).length) return null;

const userInfo = await getUserInfo();
this.userData = formatUserData(userInfo);
Expand Down

0 comments on commit 6564d72

Please sign in to comment.