summaryrefslogtreecommitdiff
path: root/elm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2020-05-25 14:29:03 +0200
committerYorhel <git@yorhel.nl>2020-05-25 14:29:28 +0200
commitfbe2b482ff4cf19b25941a70bb72bb23a15c11d1 (patch)
treefdf2b58a31a39413624eca472e23f1fbacb1b27d /elm
parent71d8fb65059288d6f312bf6c61b21c8bb2dea82f (diff)
Chars::Edit: Character creation + copying
This removes the 'Add character' link from the main menu, need some data to see if it's used.
Diffstat (limited to 'elm')
-rw-r--r--elm/CharEdit.elm2
1 files changed, 1 insertions, 1 deletions
diff --git a/elm/CharEdit.elm b/elm/CharEdit.elm
index 56aadb81..6b964117 100644
--- a/elm/CharEdit.elm
+++ b/elm/CharEdit.elm
@@ -269,7 +269,7 @@ update msg model =
isValid : Model -> Bool
isValid model = not
- ( model.name == model.original
+ ( (model.name /= "" && model.name == model.original)
|| hasDuplicates (List.map (\v -> (v.vid, Maybe.withDefault 0 v.rid)) model.vns)
)