Bug: Eth balance not updating (#709)

* fix prop name for updating eth balance

* remove unneccessary index in import

* typo fixes in safe opening
This commit is contained in:
Mikhail Mikheev 2020-04-01 14:38:38 +04:00 committed by GitHub
parent 315d516123
commit 1d9683eb12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -134,7 +134,7 @@ const SafeDeployment = ({ creationTxHash, onCancel, onRetry, onSuccess, provider
const steps = [ const steps = [
{ {
id: '1', id: '1',
label: 'Waiting fot transaction confirmation', label: 'Waiting for transaction confirmation',
description: undefined, description: undefined,
instruction: 'Please confirm the Safe creation in your wallet', instruction: 'Please confirm the Safe creation in your wallet',
footer: null, footer: null,
@ -171,7 +171,7 @@ const SafeDeployment = ({ creationTxHash, onCancel, onRetry, onSuccess, provider
id: '6', id: '6',
label: 'Success', label: 'Success',
description: 'Your Safe was created successfully', description: 'Your Safe was created successfully',
instruction: 'Click Below to get started', instruction: 'Click below to get started',
footer: ( footer: (
<Button color="primary" disabled={continueButtonDisabled} onClick={navigateToSafe} variant="contained"> <Button color="primary" disabled={continueButtonDisabled} onClick={navigateToSafe} variant="contained">
Continue Continue

View File

@ -4,7 +4,7 @@ import type { Dispatch as ReduxDispatch } from 'redux'
import { getBalanceInEtherOf } from '~/logic/wallets/getWeb3' import { getBalanceInEtherOf } from '~/logic/wallets/getWeb3'
import updateSafe from '~/routes/safe/store/actions/updateSafe' import updateSafe from '~/routes/safe/store/actions/updateSafe'
import type { Safe } from '~/routes/safe/store/models/safe' import type { Safe } from '~/routes/safe/store/models/safe'
import { type GlobalState } from '~/store/index' import { type GlobalState } from '~/store'
const fetchEtherBalance = (safe: Safe) => async (dispatch: ReduxDispatch<GlobalState>) => { const fetchEtherBalance = (safe: Safe) => async (dispatch: ReduxDispatch<GlobalState>) => {
try { try {
@ -12,7 +12,7 @@ const fetchEtherBalance = (safe: Safe) => async (dispatch: ReduxDispatch<GlobalS
const newEthBalance = await getBalanceInEtherOf(address) const newEthBalance = await getBalanceInEtherOf(address)
if (newEthBalance !== ethBalance) { if (newEthBalance !== ethBalance) {
dispatch(updateSafe({ address, newEthBalance })) dispatch(updateSafe({ address, ethBalance: newEthBalance }))
} }
} catch (err) { } catch (err) {
// eslint-disable-next-line // eslint-disable-next-line