Compare commits

...

2 Commits

Author SHA1 Message Date
492ccfbdfb fix
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good
2025-03-14 21:20:35 -05:00
678dfd6c8b fix 2025-03-14 21:17:37 -05:00

View File

@ -192,15 +192,12 @@ class _AddMountScreenState extends State<AddMountScreen> {
} }
void _handleChange(String mountType) { void _handleChange(String mountType) {
if (_mountType == mountType) {
return;
}
setState(() { setState(() {
final changed = _mountType != mountType; final changed = _mountType != mountType;
_mountType = mountType; _mountType = mountType;
_mountNameController.text = _mountNameController.text =
(mountType == 'Sia' && _mountNameController.text.isEmpty) (mountType == 'Sia' && changed)
? 'default' ? 'default'
: changed : changed
? '' ? ''