mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-09-27 19:41:08 -04:00
watchvalue fixes
This commit is contained in:
parent
37b1717a71
commit
64d0019e6e
4 changed files with 20 additions and 16 deletions
|
@ -224,8 +224,13 @@ class InvitationDialogState extends State<InvitationDialog> {
|
|||
_validInvitation = null;
|
||||
widget.onValidationFailed();
|
||||
});
|
||||
} on VeilidAPIException {
|
||||
final errorText = translate('invitation_dialog.invalid_invitation');
|
||||
} on VeilidAPIException catch (e) {
|
||||
late final String errorText;
|
||||
if (e is VeilidAPIExceptionTryAgain) {
|
||||
errorText = translate('invitation_dialog.try_again_online');
|
||||
} else {
|
||||
errorText = translate('invitation_dialog.invalid_invitation');
|
||||
}
|
||||
if (mounted) {
|
||||
showErrorToast(context, errorText);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue