diff --git a/src/components/Borrow/AssetExpanded.tsx b/src/components/Borrow/AssetExpanded.tsx index d4608ee9..589f64ae 100644 --- a/src/components/Borrow/AssetExpanded.tsx +++ b/src/components/Borrow/AssetExpanded.tsx @@ -30,7 +30,10 @@ export default function AssetExpanded(props: AssetRowProps) { } function repayHandler() { - useStore.setState({ repayModal: true }) + if (!asset) return null + useStore.setState({ + borrowModal: { asset: asset, marketData: props.row.original, isRepay: true }, + }) } return ( @@ -51,7 +54,7 @@ export default function AssetExpanded(props: AssetRowProps) { color='primary' text={isActive ? 'Borrow more' : 'Borrow'} /> - {isActive &&