From 09f9589bfa1a9e19805c2cc7dc58cad4da93f17f Mon Sep 17 00:00:00 2001
From: notoraptor <stevenbocco@gmail.com>
Date: Tue, 23 Jul 2019 10:02:13 -0400
Subject: [Web] - Set withOrders to 'N/A' when the power has no orderable locs

Should fix #58 .
---
 diplomacy/web/src/gui/utils/power_view.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'diplomacy/web/src/gui/utils/power_view.jsx')

diff --git a/diplomacy/web/src/gui/utils/power_view.jsx b/diplomacy/web/src/gui/utils/power_view.jsx
index df76da4..c1e7096 100644
--- a/diplomacy/web/src/gui/utils/power_view.jsx
+++ b/diplomacy/web/src/gui/utils/power_view.jsx
@@ -31,7 +31,7 @@ function getController(power) {
 }
 
 function getOrderFlag(power) {
-    if (power.isEliminated())
+    if (power.isEliminated() || power.game.orderableLocations[power.name].length === 0)
         return <span className="dummy"><em>N/A</em></span>;
     const value = ['no', 'empty', 'yes'][power.order_is_set];
     return <span className={value}>{value}</span>;
-- 
cgit v1.2.3

