Skip to content

Commit

Permalink
Merge pull request #5 from NearSocial/await-selector-before-commit
Browse files Browse the repository at this point in the history
0.2.2: Await for near.selector before commit
  • Loading branch information
Evgeny Kuzyakov authored Feb 25, 2023
2 parents dde293e + 839f58a commit b567464
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# Changelog

## 0.2.2

- Await for wallet selector before trying to build a commit message. This fixes an issue when the wallet selector is not ready before the commit message is initialized.

## 0.2.1

Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "near-social-vm",
"version": "0.2.1",
"version": "0.2.2",
"description": "Near Social VM",
"main": "dist/index.js",
"files": [
Expand Down
1 change: 1 addition & 0 deletions src/lib/data/commitData.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export const prepareCommit = async (
originalData,
forceRewrite
) => {
await near.selector;
const signedAccountId = near.accountId;
if (!signedAccountId) {
alert("You're not logged in. Sign in to commit data.");
Expand Down

0 comments on commit b567464

Please sign in to comment.