Browse Source

fix important bug that was not refreshing the blockHeight for Ethereum

master
Gaëtan Renaudeau 7 years ago
parent
commit
ef2275ccae
  1. 5
      src/bridge/EthereumJSBridge.js
  2. 1
      src/components/modals/AccountSettingRenderBody.js

5
src/bridge/EthereumJSBridge.js

@ -240,6 +240,11 @@ const EthereumBridge: WalletBridge<Transaction> = {
const { txs } = await api.getTransactions(freshAddress, blockHash)
if (unsubscribed) return
if (txs.length === 0) {
next(a => ({
...a,
blockHeight: block.height,
lastSyncDate: new Date(),
}))
complete()
return
}

1
src/components/modals/AccountSettingRenderBody.js

@ -167,6 +167,7 @@ class HelperComp extends PureComponent<Props, State> {
</Container>
<Spoiler title="Advanced logs">
<textarea
readOnly
style={{
userSelect: 'text',
border: '1px dashed #f9f9f9',

Loading…
Cancel
Save