move validate

This commit is contained in:
Christien Rioux 2023-10-11 23:12:10 -04:00
parent 5824929075
commit fc32fdd9f3

View File

@ -369,10 +369,10 @@ class ScanInviteDialogState extends ConsumerState<ScanInviteDialog> {
: () async { : () async {
final inviteData = await pasteQRImage(context); final inviteData = await pasteQRImage(context);
if (inviteData != null) { if (inviteData != null) {
await validateInviteData(inviteData: inviteData);
setState(() { setState(() {
scanned = true; scanned = true;
}); });
await validateInviteData(inviteData: inviteData);
} }
}, },
child: Text(translate('scan_invite_dialog.paste'))), child: Text(translate('scan_invite_dialog.paste'))),