Skip to content

Commit

Permalink
Fabo/fix undelegationendtime (#177)
Browse files Browse the repository at this point in the history
* fix issues with undelegatio end time

* catch undelegation attribute not found
  • Loading branch information
faboweb authored Dec 9, 2019
1 parent 610f855 commit cfb0828
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/reducers/cosmosV2-reducers.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ function undelegationEndTimeReducer(transaction) {
}
return !!completionTimeAttribute
})
return completionTimeAttribute.value
return completionTimeAttribute ? completionTimeAttribute.value : undefined
} else {
return null
}
Expand Down
2 changes: 1 addition & 1 deletion lib/reducers/terraV3-reducers.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function undelegationEndTimeReducer(transaction) {
}
return !!completionTimeAttribute
})
return completionTimeAttribute.value
return completionTimeAttribute ? completionTimeAttribute.value : undefined
} else {
return null
}
Expand Down

0 comments on commit cfb0828

Please sign in to comment.