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 = {
owner: string,
submissionDate: Date,
type: TxServiceType,
type: string,
transactionHash: string,
}
@ -39,7 +39,7 @@ const buildTransactionFrom = (safeAddress: string, tx: TxServiceModel, safeSubje
return makeConfirmation({
owner: makeOwner({ address: conf.owner, name: ownerName }),
type: conf.type,
type: ((conf.type.toLowerCase(): any): TxServiceType),
hash: conf.transactionHash,
})
}))