Skip to content

Commit

Permalink
Update Trade.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
Muneeb147 committed Sep 6, 2024
1 parent f1256f3 commit 9ebd546
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ui/src/components/Trade.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,14 +165,18 @@ const Subscribe = ({

<div>
{walletConnected && (
<button onClick={() => {
<button
disabled={!choice}
onClick={() => {
makeOffer(terms.price, choice, "BUY_SUBSCRIPTION", watchUpdates)
}}>
Subscribe
</button>
)}
{walletConnected && (
<button onClick={() => {
<button
disabled={!choice}
onClick={() => {
makeOffer(terms.price, choice, "VIEW_SUBSCRIPTION", watchUpdates)
}}>
View Subscription
Expand Down

0 comments on commit 9ebd546

Please sign in to comment.