fix
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good

This commit is contained in:
Scott E. Graves 2025-03-14 21:20:35 -05:00
parent 678dfd6c8b
commit 492ccfbdfb

View File

@ -193,13 +193,13 @@ class _AddMountScreenState extends State<AddMountScreen> {
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;