fix transactions not displaying for 1 owners/threshold safe
This commit is contained in:
parent
e02925f5b3
commit
53dd7b0582
|
@ -7,6 +7,7 @@ type Props = {
|
||||||
minHeight?: number,
|
minHeight?: number,
|
||||||
rounded?: boolean,
|
rounded?: boolean,
|
||||||
testId?: string,
|
testId?: string,
|
||||||
|
style?: Object,
|
||||||
}
|
}
|
||||||
|
|
||||||
const calculateStyleBased = (minWidth, minHeight, rounded) => ({
|
const calculateStyleBased = (minWidth, minHeight, rounded) => ({
|
||||||
|
@ -16,11 +17,11 @@ const calculateStyleBased = (minWidth, minHeight, rounded) => ({
|
||||||
})
|
})
|
||||||
|
|
||||||
const GnoButton = ({
|
const GnoButton = ({
|
||||||
minWidth, minHeight = 27, testId = '', rounded, ...props
|
minWidth, minHeight = 27, testId = '', rounded, style = {}, ...props
|
||||||
}: Props) => {
|
}: Props) => {
|
||||||
const style = calculateStyleBased(minWidth, minHeight, rounded)
|
const calculatedStyle = calculateStyleBased(minWidth, minHeight, rounded)
|
||||||
|
|
||||||
return <Button style={style} data-testid={testId} {...props} />
|
return <Button style={{ ...calculatedStyle, ...style }} data-testid={testId} {...props} />
|
||||||
}
|
}
|
||||||
|
|
||||||
export default GnoButton
|
export default GnoButton
|
||||||
|
|
|
@ -14,7 +14,7 @@ import { EMPTY_DATA } from '~/logic/wallets/ethTransactions'
|
||||||
import { addTransactions } from './addTransactions'
|
import { addTransactions } from './addTransactions'
|
||||||
import { getHumanFriendlyToken } from '~/logic/tokens/store/actions/fetchTokens'
|
import { getHumanFriendlyToken } from '~/logic/tokens/store/actions/fetchTokens'
|
||||||
import { isAddressAToken } from '~/logic/tokens/utils/tokenHelpers'
|
import { isAddressAToken } from '~/logic/tokens/utils/tokenHelpers'
|
||||||
import { TX_TYPE_EXECUTION, TX_TYPE_CONFIRMATION } from '~/logic/safe/transactions/send'
|
import { TX_TYPE_EXECUTION } from '~/logic/safe/transactions/send'
|
||||||
import { decodeParamsFromSafeMethod } from '~/logic/contracts/methodIds'
|
import { decodeParamsFromSafeMethod } from '~/logic/contracts/methodIds'
|
||||||
|
|
||||||
let web3
|
let web3
|
||||||
|
@ -54,7 +54,7 @@ const buildTransactionFrom = async (safeAddress: string, tx: TxServiceModel, saf
|
||||||
)
|
)
|
||||||
const modifySettingsTx = tx.to === safeAddress
|
const modifySettingsTx = tx.to === safeAddress
|
||||||
const isTokenTransfer = await isAddressAToken(tx.to)
|
const isTokenTransfer = await isAddressAToken(tx.to)
|
||||||
const creationTxHash = confirmations.findLast(conf => conf.type === TX_TYPE_CONFIRMATION).hash
|
const creationTxHash = confirmations.last().hash
|
||||||
|
|
||||||
let executionTxHash
|
let executionTxHash
|
||||||
const executionTx = confirmations.find(conf => conf.type === TX_TYPE_EXECUTION)
|
const executionTx = confirmations.find(conf => conf.type === TX_TYPE_EXECUTION)
|
||||||
|
|
Loading…
Reference in New Issue