Skip to content

Commit

Permalink
Merge pull request #104 from getsafle/feat-fix-UI
Browse files Browse the repository at this point in the history
  • Loading branch information
sshubhamagg authored Dec 11, 2023
2 parents 29d764f + 7d036eb commit 8601141
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,8 @@

### 2.0.3 (2023-11-13)

* Connection error fixes and reload page fixes
* Connection error fixes and reload page fixes

### 2.0.4 (2023-12-11)

* Undefined error fixes
4 changes: 2 additions & 2 deletions 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": "@getsafle/safle-keyless-js",
"version": "2.0.3",
"version": "2.0.4",
"description": "",
"main": "dist/index.js",
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions src/web3Manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,9 @@ export default class Web3Manager {
console.log(result);
let error: any = null;
if (result.success) {
this._selectedAddress = result.resp.addresses[0];
this._selectedAddress = result.resp?.addresses[0];
this._widgetManagerInstance?.hideIframe();
cb(error, result.resp.addresses);
cb(error, result.resp?.addresses);
} else {
error = result.error;
cb(error, result.error?.message);
Expand All @@ -215,7 +215,7 @@ export default class Web3Manager {
console.log(result);
let error: any = null;
if (result.success) {
this._signature = result.resp.sign_resp;
this._signature = result.resp?.sign_resp;
// this._sendHideWidget();
cb(error, result.resp?.sign_resp);
} else {
Expand Down

0 comments on commit 8601141

Please sign in to comment.