Update client portal link

This commit is contained in:
Hillel Coren 2021-07-05 15:39:33 +03:00
parent 446dc017d6
commit 134f77c5b8
1 changed files with 3 additions and 1 deletions

View File

@ -89,9 +89,11 @@ class EditScaffold extends StatelessWidget {
),
onTap: state.userCompany.isOwner
? () async {
if (await canLaunch(kAppPlansURL)) {
if (state.userCompany.ninjaPortalUrl.isEmpty) {
launch(
'$kAppPlansURL?email=${Uri.encodeQueryComponent(state.user.email)}');
} else {
launch(state.userCompany.ninjaPortalUrl);
}
}
: null,