chore: if user cancels image selection in user settings page, don't reset selected avatar

This commit is contained in:
ggurdin 2025-06-13 11:02:28 -04:00
parent 2961d8e277
commit 91b27b589d
No known key found for this signature in database
GPG key ID: A01CB41737CBB478

View file

@ -135,6 +135,10 @@ class UserSettingsState extends State<UserSettingsPage> {
final bytes = await selectedFile?.readAsBytes();
final path = selectedFile?.path;
if (bytes == null || path == null) {
return;
}
setState(() {
selectedAvatarPath = null;
avatar = bytes;