Skip to content

Commit 37331e1

Browse files
authored
Merge pull request #2059 from oasisprotocol/lw/ledger-err-lines
Fix ledger error text line breaks
2 parents 009e151 + 4e08b73 commit 37331e1

3 files changed

Lines changed: 10 additions & 3 deletions

File tree

.changelog/2059.trivial.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix ledger error text line breaks

src/app/components/ErrorFormatter/index.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,16 @@ export function ErrorFormatter(props: Props) {
6060
href="https://support.ledger.com/hc/en-us/articles/115005165269-Fix-USB-connection-issues-with-Ledger-Live?support=true"
6161
target="_blank"
6262
rel="noopener"
63+
style={{ display: 'inline' }}
6364
/>
6465
),
6566
ChromeHelp: (
66-
<Anchor href="https://support.google.com/chrome/answer/114662" target="_blank" rel="noopener" />
67+
<Anchor
68+
href="https://support.google.com/chrome/answer/114662"
69+
target="_blank"
70+
rel="noopener"
71+
style={{ display: 'inline' }}
72+
/>
6773
),
6874
}}
6975
/>

src/app/state/wallet/saga.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export function* openWalletFromPrivateKey({ payload }: PayloadAction<OpenFromPri
6969
const publicKeyBytes = nacl.sign.keyPair.fromSecretKey(hex2uint(payload.privateKey)).publicKey
7070
const walletAddress = yield* call(publicKeyToAddress, publicKeyBytes)
7171
const publicKey = uint2hex(publicKeyBytes)
72-
const balance = yield* call(getAccountBalanceWithFallback, walletAddress, { includeNonce: false })
72+
const balance = yield* call(getAccountBalanceWithFallback, walletAddress)
7373

7474
yield* call(addWallet, {
7575
address: walletAddress,
@@ -127,7 +127,7 @@ export function* addWallet(payload: AddWalletPayload) {
127127

128128
function* fetchWallet(action: PayloadAction<Wallet>) {
129129
const wallet = action.payload
130-
const balance = yield* call(getAccountBalanceWithFallback, wallet.address, { includeNonce: false })
130+
const balance = yield* call(getAccountBalanceWithFallback, wallet.address)
131131
yield* put(
132132
walletActions.updateBalance({
133133
address: wallet.address,

0 commit comments

Comments
 (0)