Skip to content

Commit

Permalink
Fix intermediate flow state
Browse files Browse the repository at this point in the history
  • Loading branch information
gabehamilton committed Nov 6, 2024
1 parent 9eae49f commit b0d06d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion shopper/agent/metadata.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
6 changes: 3 additions & 3 deletions shopper/agent/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit b0d06d1

Please sign in to comment.