Skip to content
This repository has been archived by the owner on Mar 24, 2024. It is now read-only.

Commit

Permalink
Update Nav function calls in Order components
Browse files Browse the repository at this point in the history
  • Loading branch information
Aloento committed Feb 15, 2024
1 parent 816a175 commit 03d9925
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Components/Order/Drawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export function OrderDetailDrawer({ OrderId, Admin, ParentLog }: IOrderComp) {
() => (Admin ? AdminHub : Hub).Order.Get.Order(OrderId),
{
onError(e) {
Nav("History");
Nav(Admin ? "Admin/Order" : "History");
ParentLog.error(e);
},
useMemory: true
Expand Down
4 changes: 2 additions & 2 deletions src/Components/Order/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export function OrderDetail({ OrderId, Admin, ParentLog }: IOrderComp) {
<Button
appearance="subtle"
icon={<OpenRegular />}
onClick={() => Nav("History", OrderId)}
onClick={() => Nav(Admin ? "Admin/Order" : "History", OrderId)}
/>

<Drawer
Expand All @@ -57,7 +57,7 @@ export function OrderDetail({ OrderId, Admin, ParentLog }: IOrderComp) {
<Button
appearance="subtle"
icon={<DismissRegular />}
onClick={() => Nav("History")}
onClick={() => Nav(Admin ? "Admin/Order" : "History")}
/>
}
>
Expand Down

0 comments on commit 03d9925

Please sign in to comment.