Skip to content

Commit

Permalink
Don't show save button if the person saved is twice
Browse files Browse the repository at this point in the history
  • Loading branch information
Owen Bean authored and Owen Bean committed Dec 5, 2023
1 parent 1adafe6 commit 95b8629
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/view/window/family_tree/family_tree_add.dart
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ class ChildToParentAddState extends State<ChildToParentAdd> {
Consumer<ChildToParentForm>(builder:
((context, childToParentForm, child) {
if (childToParentForm.child != null &&
childToParentForm.parent != null) {
childToParentForm.parent != null &&
childToParentForm.child !=
childToParentForm.parent) {
return ElevatedButton(
onPressed: () {
update(
Expand Down

0 comments on commit 95b8629

Please sign in to comment.