merge fixes
This commit is contained in:
parent
d8fbdd393a
commit
76b41a4cbb
|
@ -70,7 +70,7 @@ class Tokens extends React.Component<Props, State> {
|
||||||
onSwitch = (token: Token) => () => {
|
onSwitch = (token: Token) => () => {
|
||||||
const { safeAddress, updateActiveTokens } = this.props
|
const { safeAddress, updateActiveTokens } = this.props
|
||||||
|
|
||||||
updateActiveTokens(safeAddress, token)
|
updateActiveTokens(safeAddress, token.address)
|
||||||
}
|
}
|
||||||
|
|
||||||
setImageToPlaceholder = (e) => {
|
setImageToPlaceholder = (e) => {
|
||||||
|
|
|
@ -44,7 +44,7 @@ const fetchTokenBalances = (safeAddress: string, tokens: List<Token>) => async (
|
||||||
})),
|
})),
|
||||||
)
|
)
|
||||||
|
|
||||||
dispatch(updateSafe({ address: safeAddress, tokens: List(withBalances) }))
|
dispatch(updateSafe({ address: safeAddress, balances: List(withBalances) }))
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
// eslint-disable-next-line
|
// eslint-disable-next-line
|
||||||
console.error('Error while loading active tokens from storage:', err)
|
console.error('Error while loading active tokens from storage:', err)
|
||||||
|
|
|
@ -23,7 +23,7 @@ const updateActiveTokens = (safeAddress: string, tokenAddress: string) => async
|
||||||
) => {
|
) => {
|
||||||
const state = getState()
|
const state = getState()
|
||||||
const safeTokens: List<TokenBalance> = safeActiveTokensSelector(state, generateMatchProps(safeAddress))
|
const safeTokens: List<TokenBalance> = safeActiveTokensSelector(state, generateMatchProps(safeAddress))
|
||||||
const index = safeTokens.findIndex(safeToken => safeToken === tokenAddress)
|
const index = safeTokens.findIndex(address => address === tokenAddress)
|
||||||
|
|
||||||
let updatedTokens
|
let updatedTokens
|
||||||
if (index !== -1) {
|
if (index !== -1) {
|
||||||
|
|
Loading…
Reference in New Issue