anear-js-api 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -74,7 +74,7 @@ class AnearEvent extends JsonApiResource {
74
74
  async clonedEventContext() {
75
75
  const clonedEvent = await this.getClonedEvent()
76
76
 
77
- return clonedEvent?.context
77
+ return clonedEvent ? clonedEvent.context : null
78
78
  }
79
79
 
80
80
  get stateMachineContext() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anear-js-api",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "Javascript Developer API for Anear Apps",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {