🥅 Better unauthorized exceptions

This commit is contained in:
2024-08-21 15:25:50 +08:00
parent 1d7affcd84
commit 6148e889aa
15 changed files with 79 additions and 57 deletions

View File

@ -109,11 +109,11 @@ class _PersonalizeScreenState extends State<PersonalizeScreen> {
setState(() => _isBusy = true);
final AttachmentProvider provider = Get.find();
final AttachmentProvider attach = Get.find();
Attachment? attachResult;
try {
attachResult = await provider.createAttachmentDirectly(
attachResult = await attach.createAttachmentDirectly(
await file.readAsBytes(),
file.path,
'avatar',