Skip to content

Commit c94ea55

Browse files
authored
Merge pull request #377 from DiamondLightSource/fix/allow-for-null-courier-name-on-shipment-page
Fix shipment page for null courier name
2 parents 516e44f + cebcfc8 commit c94ea55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/src/js/templates/shipment/shipment.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ <h1>Shipment: <span class="SHIPPINGNAME"><%-SHIPPINGNAME%></span></h1>
1919
<a class="button send" href="#"><i class="fa fa-plane"></i> Mark as Sent</a>
2020
<% } %>
2121

22-
<% if (DHL_ENABLE && (DELIVERYAGENT_AGENTNAME.toLowerCase() == 'dhl' || !DELIVERYAGENT_AGENTNAME)) { %>
22+
<% if (!DELIVERYAGENT_AGENTNAME || (DHL_ENABLE && DELIVERYAGENT_AGENTNAME.toLowerCase() == 'dhl')) { %>
2323
<% if (DELIVERYAGENT_HAS_LABEL == '1') { %>
2424
<a class="button pdf" href="<%-APIURL%>/pdf/awb/sid/<%-SHIPPINGID%>"><i class="fa fa-print"></i> Print Air Waybill</a>
2525
<!-- <a class="button cancel" href="#"><i class="fa fa-truck"></i> Cancel Pickup</a> -->

0 commit comments

Comments
 (0)