@@ -3,10 +3,11 @@ import { useTranslation } from 'react-i18next'
33import { Stack , Text , Label , Modal , TextField , PrimaryButton , DefaultButton } from 'office-ui-fabric-react'
44import { StateWithDispatch , AppActions } from 'states/stateProvider/reducer'
55import actionCreators from 'states/stateProvider/actionCreators'
6+ import { priceToFee } from 'utils/formatters'
67
78const PasswordRequest = ( {
89 app : {
9- send : { txID, outputs, description } ,
10+ send : { txID, outputs, description, price , cycles } ,
1011 passwordRequest : { walletID = '' , actionType = null , password = '' } ,
1112 } ,
1213 settings : { wallets = [ ] } ,
@@ -33,14 +34,16 @@ const PasswordRequest = ({
3334 break
3435 }
3536 case 'send' : {
36- dispatch ( actionCreators . submitTransaction ( txID , walletID , outputs , description , password ) )
37+ dispatch (
38+ actionCreators . submitTransaction ( txID , walletID , outputs , description , password , priceToFee ( price , cycles ) )
39+ )
3740 break
3841 }
3942 default : {
4043 break
4144 }
4245 }
43- } , [ dispatch , walletID , password , actionType , txID , description , outputs ] )
46+ } , [ dispatch , walletID , password , actionType , txID , description , outputs , cycles , price ] )
4447
4548 const onChange = useCallback (
4649 ( _e , value ?: string ) => {
0 commit comments