Skip to content

Commit

Permalink
Add ConnectionGuard to swaps fulfillment (#2476)
Browse files Browse the repository at this point in the history
  • Loading branch information
sophialittlejohn authored Oct 8, 2024
1 parent 4a88893 commit a183e21
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions centrifuge-app/src/components/Swaps/Orders.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
WithdrawAddress,
} from '@centrifuge/centrifuge-js'
import {
ConnectionGuard,
truncateAddress,
useBalances,
useCentrifuge,
Expand Down Expand Up @@ -110,15 +111,17 @@ export function Orders({ buyOrSell }: OrdersProps) {
align: 'left',
header: '',
cell: (row: SwapOrder) => (
<Button
variant="secondary"
onClick={() => {
setSelectedOrder(row)
}}
small
>
Fulfill order
</Button>
<ConnectionGuard networks={['centrifuge']} body="">
<Button
variant="secondary"
onClick={() => {
setSelectedOrder(row)
}}
small
>
Fulfill order
</Button>
</ConnectionGuard>
),
flex: '1',
},
Expand Down

0 comments on commit a183e21

Please sign in to comment.