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,
}
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 storedOwners = await getOwners(safeAddress)
const confirmations = List(
@ -76,9 +80,7 @@ export const buildTransactionFrom = async (safeAddress: string, tx: TxServiceMod
recipient: params[0],
value: params[1],
}
} else if (
modifySettingsTx && tx.data
) {
} else if (modifySettingsTx && tx.data) {
decodedParams = await decodeParamsFromSafeMethod(tx.data)
}

View File

@ -44,7 +44,6 @@ const processTransaction = (
const shouldExecute = threshold === tx.confirmations.size || approveAndExecute
const sigs = generateSignaturesFromTxConfirmations(tx, approveAndExecute && userAddress)
let txHash
if (shouldExecute) {
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) => {
switch (size) {
case 'xs':
return xs
case 'sm':
return sm
case 'md':
return md
case 'lg':
return lg
case 'xl':
return xl
default:
return '0px'
case 'xs':
return xs
case 'sm':
return sm
case 'md':
return md
case 'lg':
return lg
case 'xl':
return xl
default:
return '0px'
}
}