Skip to content

Commit

Permalink
Merge pull request #1025 from golemfactory/mgordel/JST-926/quickstart…
Browse files Browse the repository at this point in the history
…-fixes

docs: fixed quickstart snippets
  • Loading branch information
mgordel authored Jul 10, 2024
2 parents 599e7e9 + 83c3cff commit 30136a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const order = {
logger: pinoPrettyLogger({
level: "info",
}),
// api: { key: "try_golem" },
api: { key: "try_golem" },
});

try {
Expand Down
4 changes: 2 additions & 2 deletions examples/web/hello.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>WebRequestor Task API</title>
<title>Requestor in browser</title>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
Expand Down Expand Up @@ -108,7 +108,7 @@ <h3>Results</h3>
api: { key, url },
});

glm.payment.events.on("invoiceAccepted", (invoice) => appendResults(`Total cost: ${invoice.amount} GLM`));
glm.payment.events.on("invoiceAccepted", ({ invoice }) => appendResults(`Total cost: ${invoice.amount} GLM`));

try {
appendResults("Establishing a connection to the Golem Network");
Expand Down

0 comments on commit 30136a2

Please sign in to comment.