Injecting in redux confirmations type in lowercase to match type

This commit is contained in:
apanizo 2018-10-05 17:33:50 +02:00
parent 98a402ae75
commit e6a2d53bdd
1 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ import addTransactions from './addTransactions'
type ConfirmationServiceModel = { type ConfirmationServiceModel = {
owner: string, owner: string,
submissionDate: Date, submissionDate: Date,
type: TxServiceType, type: string,
transactionHash: string, transactionHash: string,
} }
@ -39,7 +39,7 @@ const buildTransactionFrom = (safeAddress: string, tx: TxServiceModel, safeSubje
return makeConfirmation({ return makeConfirmation({
owner: makeOwner({ address: conf.owner, name: ownerName }), owner: makeOwner({ address: conf.owner, name: ownerName }),
type: conf.type, type: ((conf.type.toLowerCase(): any): TxServiceType),
hash: conf.transactionHash, hash: conf.transactionHash,
}) })
})) }))