Skip to content

Commit

Permalink
chore: improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Tuditi committed Oct 26, 2023
1 parent 37e3129 commit 1b4f3c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/shared/src/lib/core/ledger/classes/ledger.class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export class Ledger {
const mustEnableBlindSigning =
isBlindSigningRequiredForEvmTransaction(transactionData) && !(await this.isBlindSigningEnabledForEvm())
if (mustEnableBlindSigning) {
await this.enableBlindSigning()
await this.userEnablesBlindSigning()
}

openPopup({
Expand Down Expand Up @@ -181,7 +181,7 @@ export class Ledger {
return Promise.reject(localize('error.ledger.timeout'))
}

private static enableBlindSigning(): Promise<void> {
private static userEnablesBlindSigning(): Promise<void> {
return new Promise((resolve, reject) => {
let isDisabled = true
openPopup({
Expand All @@ -194,7 +194,7 @@ export class Ledger {
},
onClose: () => {
if (isDisabled) {
reject('must enable blind siging')
reject(localize('popups.enableLedgerBlindSigning.info'))
}
},
},
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@
"popups": {
"enableLedgerBlindSigning": {
"title": "Enable Blind Signing",
"info": "In order to confirm this transaction you need to enable Blind Signing on your Ledger device.",
"info": "You need to enable Blind Signing on your Ledger device to confirm this transaction.",
"step_1": "Connect and unlock your Ledger device",
"step_2": "Open the {appName} application",
"step_3": "Press the right button to navigate to Settings, then press both buttons to validate. Your Ledger device displays Blind Signing.",
Expand Down

0 comments on commit 1b4f3c3

Please sign in to comment.