diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-11-13 10:17:39 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-11-13 10:17:39 +0100 |
commit | eb84d5747aac0de781d64fb9cdbf2da13006d85e (patch) | |
tree | 387d7711e177d151a185e2a9a870c39cc03926ce /lib/wallet/renderHtml.tsx | |
parent | b2128609ac8159a14224deba399144b3400c8c20 (diff) |
fix small react issues
Diffstat (limited to 'lib/wallet/renderHtml.tsx')
-rw-r--r-- | lib/wallet/renderHtml.tsx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/wallet/renderHtml.tsx b/lib/wallet/renderHtml.tsx index 6afe32b74..940d5c425 100644 --- a/lib/wallet/renderHtml.tsx +++ b/lib/wallet/renderHtml.tsx @@ -34,15 +34,15 @@ export function renderContract(contract: Contract): JSX.Element { return ( <div> - <p>{ - i18n.parts`${merchantName} - wants to enter a contract over ${amount} - with you.`} + <p> + The merchant {merchantName} + wants to enter a contract over {amount}{" "} + with you. </p> <p>{i18n`You are about to purchase:`}</p> <ul> {contract.products.map( - (p: any) => (<li>{`${p.description}: ${prettyAmount(p.price)}`}</li>)) + (p: any, i: number) => (<li key={i}>{`${p.description}: ${prettyAmount(p.price)}`}</li>)) } </ul> </div> |