Skip to content

Commit

Permalink
ui tweak, fix for no orders
Browse files Browse the repository at this point in the history
  • Loading branch information
james-stevens committed Feb 27, 2023
1 parent 835f2bb commit 9098cb6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion htdocs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1539,7 +1539,7 @@

user_info();
let fn = show_new_orders
if ((!ctx.orders.length)&&(!gbl.basket)) {
if ((!ctx.orders)&&(!gbl.basket)) {
delete ctx.orders;
fn = show_all_orders_processed;
}
Expand All @@ -1555,6 +1555,7 @@
callApi("orders/details",(ok,reply) => {
if (!ok) return def_errMsg("Failed to load orders",reply,"errorSpan");
catch_user_data(reply);
user_info();
show_one_space("userSpace");
if ((ctx.orders)&&(ctx.orders.length)) {
elm.userSpace.innerHTML = "<table align=center width=75% border=0>"+order_details(true)+"</table>";
Expand Down

0 comments on commit 9098cb6

Please sign in to comment.