Skip to content
This repository has been archived by the owner on Nov 29, 2024. It is now read-only.

Commit

Permalink
Merge tag '1.1.1' into dev
Browse files Browse the repository at this point in the history
- Add delay before sending permission event
  • Loading branch information
Aleksey Svetlitskiy committed Aug 7, 2024
2 parents 56beba8 + 90bf8ce commit 5c9414f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

-

### v1.1.1

- Add delay before sending permission event

### v1.1.0

- Add sending nft list of the event to the check rxb event
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "qr-scanner-rxb",
"version": "1.1.0",
"version": "1.1.1",
"private": true,
"repository": "git://github.com/cere-io/nft-marketplace-client",
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions src/stores/event.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class EventStore {
);
reaction(
() => !!this.userStore.sdkInstance,
() => {
async () => {
const trigger = SdkTriggerEnum.PERMISSIONS;
this._eventSubscription?.(); // unsubscribe

Expand All @@ -44,7 +44,7 @@ export class EventStore {
console.error("Cannot parse response from sdk, it's not a JSON format");
}
}, {});

await new Promise((resolve) => setTimeout(resolve, 1000)); // TODO attempt to fix bug https://cere-network.slack.com/archives/C02748RGX3M/p1723021900944829?thread_ts=1723003606.830809&cid=C02748RGX3M
this.userStore.sdkInstance?.sendEvent(trigger, {trigger});
},
);
Expand Down

0 comments on commit 5c9414f

Please sign in to comment.