Skip to content

Commit

Permalink
Merge pull request #2059 from oasisprotocol/lw/ledger-err-lines
Browse files Browse the repository at this point in the history
Fix ledger error text line breaks
  • Loading branch information
lukaw3d authored Sep 23, 2024
2 parents 009e151 + 4e08b73 commit 37331e1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions .changelog/2059.trivial.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix ledger error text line breaks
8 changes: 7 additions & 1 deletion src/app/components/ErrorFormatter/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,16 @@ export function ErrorFormatter(props: Props) {
href="https://support.ledger.com/hc/en-us/articles/115005165269-Fix-USB-connection-issues-with-Ledger-Live?support=true"
target="_blank"
rel="noopener"
style={{ display: 'inline' }}
/>
),
ChromeHelp: (
<Anchor href="https://support.google.com/chrome/answer/114662" target="_blank" rel="noopener" />
<Anchor
href="https://support.google.com/chrome/answer/114662"
target="_blank"
rel="noopener"
style={{ display: 'inline' }}
/>
),
}}
/>
Expand Down
4 changes: 2 additions & 2 deletions src/app/state/wallet/saga.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export function* openWalletFromPrivateKey({ payload }: PayloadAction<OpenFromPri
const publicKeyBytes = nacl.sign.keyPair.fromSecretKey(hex2uint(payload.privateKey)).publicKey
const walletAddress = yield* call(publicKeyToAddress, publicKeyBytes)
const publicKey = uint2hex(publicKeyBytes)
const balance = yield* call(getAccountBalanceWithFallback, walletAddress, { includeNonce: false })
const balance = yield* call(getAccountBalanceWithFallback, walletAddress)

yield* call(addWallet, {
address: walletAddress,
Expand Down Expand Up @@ -127,7 +127,7 @@ export function* addWallet(payload: AddWalletPayload) {

function* fetchWallet(action: PayloadAction<Wallet>) {
const wallet = action.payload
const balance = yield* call(getAccountBalanceWithFallback, wallet.address, { includeNonce: false })
const balance = yield* call(getAccountBalanceWithFallback, wallet.address)
yield* put(
walletActions.updateBalance({
address: wallet.address,
Expand Down

0 comments on commit 37331e1

Please sign in to comment.