Skip to content

Commit

Permalink
Merge pull request #3629 from Emurgo/fix/YOEXT-1362/ledger-request-ca…
Browse files Browse the repository at this point in the history
…ncelled

[5.3.130] fix ledger wallet "cancelled by user" bug
  • Loading branch information
vsubhuman authored Sep 16, 2024
2 parents b6b5890 + 88e7387 commit c3c821f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions packages/yoroi-extension/ledger/stores/ConnectStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -443,9 +443,6 @@ export default class ConnectStore {
_sender?: any,
sendResponse?: ?(any) => void,
) => ?boolean = (req, _sender, sendResponse) => {
if (sendResponse) {
this.sendResponseFunc = sendResponse;
}
const { data } = req;
if (data == null) {
console.error(`Missing data in req ${JSON.stringify(req)}`);
Expand All @@ -455,6 +452,9 @@ export default class ConnectStore {
console.debug(`[YLC] Got non ledger ConnectStore\nrequest: ${req.origin ?? 'undefined'}\ndata: ${JSON.stringify(req.data, null, 2) ?? 'undefined'}`);
return;
}
if (sendResponse) {
this.sendResponseFunc = sendResponse;
}
if (data.extension != null) {
runInAction(() => { this.extension = data.extension; });
}
Expand Down
4 changes: 2 additions & 2 deletions packages/yoroi-extension/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 packages/yoroi-extension/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "yoroi",
"version": "5.3.120",
"version": "5.3.130",
"description": "Cardano ADA wallet",
"scripts": {
"dev-mv2": "rimraf dev/ && NODE_OPTIONS=--openssl-legacy-provider babel-node scripts-mv2/build --type=debug --env 'mainnet'",
Expand Down

0 comments on commit c3c821f

Please sign in to comment.