From e16f5ab54d1e69e59fe4689fde3fa34e61c88974 Mon Sep 17 00:00:00 2001 From: Alexander Tseung Date: Sat, 14 Jul 2018 23:36:42 -0700 Subject: Fix tests --- ui/app/components/pages/confirm-approve/confirm-approve.component.js | 4 +++- ui/app/components/pages/confirm-approve/confirm-approve.container.js | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'ui/app') diff --git a/ui/app/components/pages/confirm-approve/confirm-approve.component.js b/ui/app/components/pages/confirm-approve/confirm-approve.component.js index 10f06e565..b71eaa1d4 100644 --- a/ui/app/components/pages/confirm-approve/confirm-approve.component.js +++ b/ui/app/components/pages/confirm-approve/confirm-approve.component.js @@ -5,14 +5,16 @@ import ConfirmTokenTransactionBase from '../confirm-token-transaction-base' export default class ConfirmApprove extends Component { static propTypes = { tokenAmount: PropTypes.number, + tokenSymbol: PropTypes.string, } render () { - const { tokenAmount } = this.props + const { tokenAmount, tokenSymbol } = this.props return ( ) } diff --git a/ui/app/components/pages/confirm-approve/confirm-approve.container.js b/ui/app/components/pages/confirm-approve/confirm-approve.container.js index 249175e17..4ef9f4ced 100644 --- a/ui/app/components/pages/confirm-approve/confirm-approve.container.js +++ b/ui/app/components/pages/confirm-approve/confirm-approve.container.js @@ -3,10 +3,12 @@ import ConfirmApprove from './confirm-approve.component' import { approveTokenAmountAndToAddressSelector } from '../../../selectors/confirm-transaction' const mapStateToProps = state => { + const { confirmTransaction: { tokenProps: { tokenSymbol } = {} } } = state const { tokenAmount } = approveTokenAmountAndToAddressSelector(state) return { tokenAmount, + tokenSymbol, } } -- cgit v1.2.3