Skip to content

Commit 67bc914

Browse files
authored
Merge pull request #12 from opendexnetwork/feat/default-trade-pair
feat(trade): make ETH/BTC default pair
2 parents 875bdf7 + 082fb1d commit 67bc914

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
REACT_APP_API_URL=https://localhost:28889
1+
REACT_APP_API_URL=https://localhost:18889

src/dashboard/trade/Trade.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,12 @@ class Trade extends DashboardContent<PropsType, StateType> {
9393
)
9494
.subscribe({
9595
next: (resp) => {
96-
this.tradeStore.setActivePair(
97-
resp.pairs.length ? resp.pairs[0] : undefined
98-
);
96+
const activePair = "ETH/BTC";
97+
this.tradeStore.setActivePair(activePair);
9998
this.setState({
10099
initialLoadCompleted: true,
101100
pairs: resp.pairs,
101+
activePair,
102102
});
103103
},
104104
error: (err) =>

0 commit comments

Comments
 (0)