diff --git a/src/components/pages/profile.jsx b/src/components/pages/profile.jsx
index cb2df76..9d1c382 100644
--- a/src/components/pages/profile.jsx
+++ b/src/components/pages/profile.jsx
@@ -163,23 +163,23 @@ class Profile extends React.Component {
{this.props.profile.soldiers}
-
+
Scientists:
{this.props.profile.scientists}
-
-
+
+
Spies:
{this.props.profile.spies}
-
-
+
+
@@ -342,6 +342,19 @@ class Profile extends React.Component {
);
}
+ //popup messages
+ confirmNoSoldiers(role) {
+ if (this.props.profile.soldiers > 0) {
+ return true;
+ }
+
+ return window.confirm(`Are you sure you want to train a ${role}? (without a soldier, it'll be very difficult to accrue gold!)`);
+ }
+
+ confirmUntrain(role) {
+ return window.confirm(`Are you sure you want to untrain a ${role}? (you won't get your gold back!)`);
+ }
+
setWarning(s) {
this.setState({ warning: s });
}