diff --git a/example/src/Publish.tsx b/example/src/Publish.tsx
index 736fe47..be8b0f6 100644
--- a/example/src/Publish.tsx
+++ b/example/src/Publish.tsx
@@ -47,7 +47,7 @@ export function Publish() {
setDdo(ddo)
}
- const PostForSale = async () => {
+ const handlePostForSale = async () => {
if(ddo){
const priceOptions = {
price: 7,
@@ -74,7 +74,7 @@ export function Publish() {
DID: {ddo && ddo.id}
-
+
IsLoading: {pricingIsLoading.toString()} || pricingStatus: {pricingStepText}
diff --git a/example/src/Trade.tsx b/example/src/Trade.tsx
index 3fb4533..9fa0e3f 100644
--- a/example/src/Trade.tsx
+++ b/example/src/Trade.tsx
@@ -9,7 +9,7 @@ export function Trade() {
const { ocean, accountId } = useOcean()
const { createPricing, buyDT, sellDT, pricingStep, pricingStepText, isLoading: pricingIsLoading, pricingError} = usePricing()
const [did, setDid] = useState()
- const ActionBuy = async () => {
+ const handleBuy = async () => {
if (!did) { console.error("No DID"); return}
const ddo = await ocean.assets.resolve(did)
if(ddo){
@@ -20,7 +20,7 @@ export function Trade() {
console.error("Publish the asset first and create a pricing")
}
}
- const ActionSell = async () => {
+ const handleSell = async () => {
if (!did) { console.error("No DID"); return}
const ddo = await ocean.assets.resolve(did)
if(ddo){
@@ -41,10 +41,10 @@ export function Trade() {
DID
-
+
-
+
IsLoading: {pricingIsLoading.toString()} || Status: {pricingStepText}