fix: on cancel registration, pop future loading dialog (#3967)
This commit is contained in:
parent
3b3e1bfe4e
commit
4aa37c2d9f
1 changed files with 5 additions and 0 deletions
|
|
@ -163,6 +163,11 @@ class SignupPageController extends State<SignupPage> {
|
|||
loadingAppleSSO = false;
|
||||
loadingGoogleSSO = false;
|
||||
});
|
||||
if (e.toString().contains("Request has been canceled")) {
|
||||
Navigator.of(context).pop();
|
||||
return null;
|
||||
}
|
||||
|
||||
return e is MatrixException
|
||||
? e.errorMessage
|
||||
: L10n.of(context).oopsSomethingWentWrong;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue