From 492ccfbdfb10ff3ccbb60912949e95fb1846203b Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Fri, 14 Mar 2025 21:20:35 -0500 Subject: [PATCH] fix --- web/repertory/lib/screens/add_mount_screen.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/repertory/lib/screens/add_mount_screen.dart b/web/repertory/lib/screens/add_mount_screen.dart index 109a7cc5..94dbea9c 100644 --- a/web/repertory/lib/screens/add_mount_screen.dart +++ b/web/repertory/lib/screens/add_mount_screen.dart @@ -193,13 +193,13 @@ class _AddMountScreenState extends State { void _handleChange(String mountType) { setState(() { - final changedFromSia = _mountType != mountType && mountType == 'Sia'; + final changed = _mountType != mountType; _mountType = mountType; _mountNameController.text = - (mountType == 'Sia' && _mountNameController.text.isEmpty) + (mountType == 'Sia' && changed) ? 'default' - : changedFromSia + : changed ? '' : _mountNameController.text;