From b0d06d171c6da4580e4e8afb3688ebedf54737ef Mon Sep 17 00:00:00 2001 From: Gabe Hamilton Date: Wed, 6 Nov 2024 23:19:34 +0000 Subject: [PATCH] Fix intermediate flow state --- shopper/agent/metadata.json | 2 +- shopper/agent/template.html | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/shopper/agent/metadata.json b/shopper/agent/metadata.json index 7227113..dc96e1b 100644 --- a/shopper/agent/metadata.json +++ b/shopper/agent/metadata.json @@ -1,7 +1,7 @@ { "category": "agent", "name": "shopper", - "version": "0.0.8", + "version": "0.1.0", "description": "I can help you find and buy products to solve your problems", "tags": [ "shopping", diff --git a/shopper/agent/template.html b/shopper/agent/template.html index 165b6f5..56ad9e6 100644 --- a/shopper/agent/template.html +++ b/shopper/agent/template.html @@ -158,8 +158,8 @@ var placeOrderTimer; setTimeout(function() { - if(agent_order_id && agent_order_id !== "") { - console.log('agent_order_id received:'); + if(agent_order_id && agent_order_id !== "" && !orderCompleted) { + console.log('agent_order_id received:', agent_order_id); const productSearch = document.getElementById('product-search'); const placingOrder = document.getElementById('placing-order'); const preparedModal = document.getElementById('order-prepared'); @@ -231,7 +231,7 @@ } const callData = { - agent_id: "flatirons.near/shopper/0.0.8", + agent_id: "flatirons.near/shopper/0.1.0", new_message: JSON.stringify({"order": { "size": "M",