Skip to content

Commit

Permalink
feat:修改賣家訂單聊天bug
Browse files Browse the repository at this point in the history
  • Loading branch information
partner0487 committed Dec 26, 2023
1 parent 88729b6 commit 16df683
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/app/my-order/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ export default function Orders() {
setOrdersDataReject(orderDataReject);
setOrdersDataAccept(orderDataAccept);
setOrdersDataDone(orderDataDone);
console.log(orderData);
// setOrdersData(mockOrders); // 假測資
} catch (error) {
console.error("獲取訂單資料錯誤:", error);
Expand Down
3 changes: 2 additions & 1 deletion src/app/order/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ export default function Orders() {
setOrdersDataReject(orderDataReject);
setOrdersDataAccept(orderDataAccept);
setOrdersDataDone(orderDataDone);
console.log(orderData);
// setOrdersData(mockOrders); // 假測資
} catch (error) {
console.error("獲取訂單資料錯誤:", error);
Expand All @@ -270,7 +271,7 @@ export default function Orders() {
const users = JSON.parse(
localStorage.getItem("usersReceiver") ?? "[]"
);
const sellerIDToAdd = (order.sellerid);
const sellerIDToAdd = (order.buyerid);
var sellerNameToAdd = "";
{order.productAddAmountList.map((productItem) => (
sellerNameToAdd = productItem.product.sellerName
Expand Down

0 comments on commit 16df683

Please sign in to comment.