Skip to content

Commit

Permalink
fix: add missing currentRoute
Browse files Browse the repository at this point in the history
  • Loading branch information
chybisov committed Jul 27, 2022
1 parent 1b001d6 commit ac9df1e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/widget/src/pages/SwapPage/SwapPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@ export const SwapPage: React.FC = () => {
) : null}
{status === 'idle' || status === 'error' ? (
<Box mt={2}>
<SwapButton onClick={handleSwapClick} text={getSwapButtonText()} />
<SwapButton
text={getSwapButtonText()}
onClick={handleSwapClick}
currentRoute={route}
/>
</Box>
) : null}
{status === 'error' ? (
Expand Down

0 comments on commit ac9df1e

Please sign in to comment.