diff --git a/lib/view/login/Kyc.dart b/lib/view/login/Kyc.dart index ac6b5e7..1393309 100644 --- a/lib/view/login/Kyc.dart +++ b/lib/view/login/Kyc.dart @@ -104,7 +104,12 @@ class _KycState extends State { child: Scaffold( appBar: CommonAppbar( titleTxt: "KYC", - customActionWidget: text16W400(""), + customActionWidget: InkWell( + onTap: () { + Get.toNamed(RouteName.updateriskprofile); + }, + child: text16W400("skip"), + ), ), backgroundColor: Colors.black, extendBody: true, diff --git a/lib/view/login/VerifyOtp.dart b/lib/view/login/VerifyOtp.dart index ca5a0c4..b705e56 100644 --- a/lib/view/login/VerifyOtp.dart +++ b/lib/view/login/VerifyOtp.dart @@ -70,30 +70,16 @@ class _VerifyOTPState extends State { SharedPreferences prefs = await SharedPreferences.getInstance(); await prefs.setString( 'accessToken', resp.data["data"]["access-token"]); - // await prefs.setString('productType', - // resp.data["data"]["nature_of_business_id"].toString()); - // naturebusiness = - // resp.data["data"]["nature_of_business_id"].toString(); - // ProfileApi().GetProfileApi().then( - // (value) { - - // isSecuredAccess == 0 - // ? Get.toNamed(RouteName.secureaccess) - // : isProfileUpdated == 0 ? Get.toNamed(RouteName.adddetails) - : isKycUpdated == 0 - ? Get.toNamed(RouteName.kyc) - : isriskProfileUpdated == 0 - ? Get.toNamed(RouteName.updateriskprofile) - : Get.toNamed(RouteName.mainscreen); - - // Get.toNamed(RouteName.mainscreen); - // }, - // ); - - // Get.to(() => CustomBottomBar(pageIndex: 0)); + : + // isKycUpdated == 0 + // ? Get.toNamed(RouteName.kyc) + // : + isriskProfileUpdated == 0 + ? Get.toNamed(RouteName.updateriskprofile) + : Get.toNamed(RouteName.mainscreen); } else { Get.toNamed(RouteName.loginscreen); }