Skip to content
Snippets Groups Projects
Unverified Commit 53631107 authored by meskio's avatar meskio :tent:
Browse files

Don't fail to display closed orders if I didn't buy on it

parent 7f91c36a
No related branches found
No related tags found
No related merge requests found
......@@ -182,7 +182,11 @@ class ShowOrder extends React.Component {
let deadline_week = new Date(order.deadline);
deadline_week.setDate(deadline_week.getDate() + 7);
if (deadline_week > Date.now()) {
if (order.arrived && !this.state.transaction.collected) {
if (
order.arrived &&
this.state.transaction !== null &&
!this.state.transaction.collected
) {
collect_button = (
<Sender
url={"/api/order/" + id + "/collected"}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment