Skip to content

Commit 587ce0f

Browse files
miljantekicjdee
authored andcommitted
Added check for params property to not be null or undefined
1 parent 0ea4b96 commit 587ce0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class Branch {
4444
RNBranch.redeemInitSessionResult().then((result) => {
4545
if (result) {
4646
/*** Cached value is returned, so set it as cached. ***/
47-
if('params' in result) {
47+
if('params' in result && !!result['params']) {
4848
result['params']['cached_initial_event'] = true
4949
}
5050

0 commit comments

Comments
 (0)