Commit 6806e366 by Renaud Dufour

Set user_comments to an empty string if not available from the local storage.

parent 32e8eb9b
...@@ -1481,7 +1481,7 @@ $(document).ready(function() { ...@@ -1481,7 +1481,7 @@ $(document).ready(function() {
reception_status = orders[Object.keys(orders)[0]].reception_status; reception_status = orders[Object.keys(orders)[0]].reception_status;
// Load user comments from local storage, get it from first order // Load user comments from local storage, get it from first order
user_comments = orders[Object.keys(orders)[0]].user_comments; user_comments = orders[Object.keys(orders)[0]].user_comments || "";
} }
// Fetch orders data // Fetch orders data
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment