Fix bugs
This commit is contained in:
@@ -35,7 +35,9 @@ class AddProfileModal extends HookConsumerWidget {
|
||||
t.failure.profiles.invalidUrl,
|
||||
).show(context);
|
||||
} else {
|
||||
CustomAlertDialog.fromErr(t.presentError(err)).show(context);
|
||||
CustomAlertDialog.fromErr(
|
||||
t.presentError(err, action: t.profile.add.failureMsg),
|
||||
).show(context);
|
||||
}
|
||||
},
|
||||
initialOnSuccess: () {
|
||||
|
||||
@@ -37,7 +37,7 @@ class ProfilesModal extends HookConsumerWidget {
|
||||
itemCount: profiles.length,
|
||||
),
|
||||
AsyncError(:final error) => SliverErrorBodyPlaceholder(
|
||||
t.printError(error),
|
||||
t.presentShortError(error),
|
||||
),
|
||||
AsyncLoading() => const SliverLoadingBodyPlaceholder(),
|
||||
_ => const SliverToBoxAdapter(),
|
||||
|
||||
Reference in New Issue
Block a user