From 5084a1f7cb206e73b399ea52dcd1a821a88d0b3d Mon Sep 17 00:00:00 2001 From: meriadec Date: Tue, 12 Jun 2018 17:37:33 +0200 Subject: [PATCH] Fix SelectCurrency return value --- src/components/SelectCurrency/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/SelectCurrency/index.js b/src/components/SelectCurrency/index.js index 6635f5b6..33743b36 100644 --- a/src/components/SelectCurrency/index.js +++ b/src/components/SelectCurrency/index.js @@ -30,7 +30,9 @@ const mapStateToProps = (state, props: OwnProps) => ({ }) const SelectCurrency = ({ onChange, value, t, placeholder, currencies, ...props }: Props) => { - const options = currencies ? currencies.map(c => ({ ...c, value: c.id, label: c.name })) : [] + const options = currencies + ? currencies.map(c => ({ ...c, value: c.id, label: c.name, currency: c })) + : [] return (