Skip to content

Commit 1daf86d

Browse files
committed
fix: remove word
1 parent 21cc8f1 commit 1daf86d

File tree

2 files changed

+42
-3
lines changed

2 files changed

+42
-3
lines changed

src/components/solver/GetQuotes.svelte

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
const API_URL = "https://catalyst-order-server-0140d799e2f7.herokuapp.com/";
44
55
async function getOrders(): Promise<getOrdersEvent> {
6-
const orderServerResponse = await fetch(API_URL + "orders/");
6+
const orderServerResponse = await fetch(API_URL + "orders/", {
7+
method: "post",
8+
});
79
const fetchedOrders = (await orderServerResponse.json()) as getOrdersEvent;
810
911
return fetchedOrders;
@@ -12,6 +14,43 @@
1214
let request: undefined | Promise<getOrdersEvent> = undefined;
1315
</script>
1416

17+
<!-- <a
18+
style="font: inherit;align-items: flex-start;
19+
text-align: center;
20+
cursor: default;
21+
color: buttontext;
22+
padding-block-start: 2px;
23+
padding-block-end: 3px;
24+
padding-inline-start: 6px;
25+
border-top-width: 2px;
26+
border-right-width: 2px;
27+
border-bottom-width: 2px;
28+
border-left-width: 2px;
29+
border-top-style: outset;
30+
border-right-style: outset;
31+
border-bottom-style: outset;
32+
border-left-style: outset;
33+
border-top-color: buttonface;
34+
border-right-color: buttonface;
35+
border-bottom-color: buttonface;
36+
border-left-color: buttonface;
37+
background-color: buttonface;margin-top: 0em;
38+
color: initial;
39+
letter-spacing: normal;
40+
word-spacing: normal;
41+
line-height: normal;
42+
text-transform: none;
43+
text-indent: 0px;
44+
text-shadow: none;
45+
display: inline-block;
46+
text-align: start;"
47+
href={API_URL + "orders/"}
48+
target="_blank"
49+
rel="noopener noreferrer"
50+
>
51+
getOrders()
52+
</a> -->
53+
1554
{#await request}
1655
<button disabled>Waiting</button>
1756
{:then}

src/content/docs/protocol/v2/solver.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def get_orders():
182182
</TabItem>
183183
</Tabs>
184184

185-
<GetQuotes client:visible/>
185+
<GetQuotes client:load/>
186186

187187
#### Subscribe to orders (WIP)
188188

@@ -223,7 +223,7 @@ async function initiateOrder() {
223223

224224
// TODO: Set approvals for the reactorAddress for all inputs & collateral.
225225

226-
// The order arrives almost exactly ready to use,
226+
// The order arrives almost ready to use,
227227
// we just need to remove the type from the orderdata.
228228
const {type: _, ...cleanedOrderData} = order.order.orderData;
229229
const cleanedOrder = {...order.order, orderData: cleanedOrderData};

0 commit comments

Comments
 (0)