Improved the Name Bug Fix

The name bug fix is a bit better now, as internally it sets the name to
"Vault Dweller" when the name string is empty, but does not act as
invasive in the UI.
This commit is contained in:
TheCreatorJames committed 2016-07-22 18:42:22 -05:00
1 parent ef484e9f34
commit 8597ea1c58
1 file changed
+9 -3
+9 -3
View File
@@ -207,10 +207,16 @@ app.controller('dwellerController', function ($scope) {
return _firstName
},
set: function (val) {
if(val.trim().length == 0) val = "Vault Dweller";
_firstName = val;
$scope.dweller.name = val;
_firstName = val;
if(val.trim().length == 0)
{
$scope.dweller.name = "Vault Dweller";
}
else
{
$scope.dweller.name = val;
}
}
});