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:
parent
315d516123
commit
1d9683eb12
|
@ -134,7 +134,7 @@ const SafeDeployment = ({ creationTxHash, onCancel, onRetry, onSuccess, provider
|
|||
const steps = [
|
||||
{
|
||||
id: '1',
|
||||
label: 'Waiting fot transaction confirmation',
|
||||
label: 'Waiting for transaction confirmation',
|
||||
description: undefined,
|
||||
instruction: 'Please confirm the Safe creation in your wallet',
|
||||
footer: null,
|
||||
|
@ -171,7 +171,7 @@ const SafeDeployment = ({ creationTxHash, onCancel, onRetry, onSuccess, provider
|
|||
id: '6',
|
||||
label: 'Success',
|
||||
description: 'Your Safe was created successfully',
|
||||
instruction: 'Click Below to get started',
|
||||
instruction: 'Click below to get started',
|
||||
footer: (
|
||||
<Button color="primary" disabled={continueButtonDisabled} onClick={navigateToSafe} variant="contained">
|
||||
Continue
|
||||
|
|
|
@ -4,7 +4,7 @@ import type { Dispatch as ReduxDispatch } from 'redux'
|
|||
import { getBalanceInEtherOf } from '~/logic/wallets/getWeb3'
|
||||
import updateSafe from '~/routes/safe/store/actions/updateSafe'
|
||||
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>) => {
|
||||
try {
|
||||
|
@ -12,7 +12,7 @@ const fetchEtherBalance = (safe: Safe) => async (dispatch: ReduxDispatch<GlobalS
|
|||
const newEthBalance = await getBalanceInEtherOf(address)
|
||||
|
||||
if (newEthBalance !== ethBalance) {
|
||||
dispatch(updateSafe({ address, newEthBalance }))
|
||||
dispatch(updateSafe({ address, ethBalance: newEthBalance }))
|
||||
}
|
||||
} catch (err) {
|
||||
// eslint-disable-next-line
|
||||
|
|
Loading…
Reference in New Issue