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;