summaryrefslogtreecommitdiffstats
path: root/frontend/components/OrderList.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/components/OrderList.js')
-rw-r--r--frontend/components/OrderList.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/frontend/components/OrderList.js b/frontend/components/OrderList.js
index cf12dc8..6a1ad67 100644
--- a/frontend/components/OrderList.js
+++ b/frontend/components/OrderList.js
@@ -31,7 +31,12 @@ class OrderList extends Component {
<ul className="order-items">
<hr />
<h2>
- <Link href={`/order/${order.id}`} prefetch>
+ <Link
+ href={{
+ pathname: '/order',
+ query: { id: order.id },
+ }}
+ >
<a>{order.id}</a>
</Link>
<time dateTime={order.createdAt} title={format(order.createdAt, 'MMMM D, YYYY h:mm A')}>