Format fixes

This commit is contained in:
Germán Martínez 2019-07-18 12:46:09 +02:00
parent 625255de2d
commit a3f2f56dd7
3 changed files with 18 additions and 17 deletions

View File

@ -38,7 +38,11 @@ type TxServiceModel = {
isExecuted: boolean, isExecuted: boolean,
} }
export const buildTransactionFrom = async (safeAddress: string, tx: TxServiceModel, safeSubjects: Map<string, string>) => { export const buildTransactionFrom = async (
safeAddress: string,
tx: TxServiceModel,
safeSubjects: Map<string, string>,
) => {
const name = safeSubjects.get(String(tx.nonce)) || 'Unknown' const name = safeSubjects.get(String(tx.nonce)) || 'Unknown'
const storedOwners = await getOwners(safeAddress) const storedOwners = await getOwners(safeAddress)
const confirmations = List( const confirmations = List(
@ -76,9 +80,7 @@ export const buildTransactionFrom = async (safeAddress: string, tx: TxServiceMod
recipient: params[0], recipient: params[0],
value: params[1], value: params[1],
} }
} else if ( } else if (modifySettingsTx && tx.data) {
modifySettingsTx && tx.data
) {
decodedParams = await decodeParamsFromSafeMethod(tx.data) decodedParams = await decodeParamsFromSafeMethod(tx.data)
} }

View File

@ -44,7 +44,6 @@ const processTransaction = (
const shouldExecute = threshold === tx.confirmations.size || approveAndExecute const shouldExecute = threshold === tx.confirmations.size || approveAndExecute
const sigs = generateSignaturesFromTxConfirmations(tx, approveAndExecute && userAddress) const sigs = generateSignaturesFromTxConfirmations(tx, approveAndExecute && userAddress)
let txHash let txHash
if (shouldExecute) { if (shouldExecute) {
openSnackbar('Transaction has been submitted', 'success') openSnackbar('Transaction has been submitted', 'success')

View File

@ -7,17 +7,17 @@ export type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl'
export const getSize = (size: Size | typeof undefined) => { export const getSize = (size: Size | typeof undefined) => {
switch (size) { switch (size) {
case 'xs': case 'xs':
return xs return xs
case 'sm': case 'sm':
return sm return sm
case 'md': case 'md':
return md return md
case 'lg': case 'lg':
return lg return lg
case 'xl': case 'xl':
return xl return xl
default: default:
return '0px' return '0px'
} }
} }