fix ts error

This commit is contained in:
fmtabbara
2021-08-31 20:48:30 +01:00
parent c7fe4cd24e
commit e68c261162
2 changed files with 7 additions and 4 deletions
+2 -2
View File
@@ -11,7 +11,7 @@ export const SendForm = ({
updateRecipAddress: (address: string) => void
updateAmount: (amount: string) => void
}) => {
const { address } = useContext(ClientContext)
const { clientDetails } = useContext(ClientContext)
return (
<Grid container spacing={3}>
@@ -23,7 +23,7 @@ export const SendForm = ({
name="sender"
label="Sender address"
fullWidth
value={address}
value={clientDetails?.client_address}
disabled={true}
/>
</Grid>
+5 -2
View File
@@ -10,7 +10,7 @@ export const SendReview = ({
recipientAddress: string
amount: string
}) => {
const { client } = useContext(ClientContext)
const { clientDetails } = useContext(ClientContext)
const theme: Theme = useTheme()
return (
<Card
@@ -19,7 +19,10 @@ export const SendReview = ({
>
<Grid container spacing={2}>
<Grid item xs={12}>
<SendReviewField title="From" subtitle={client.address} />
<SendReviewField
title="From"
subtitle={clientDetails?.client_address!}
/>
</Grid>
<Grid item xs={12}>
<Divider light />