diff --git a/lib/core/service/client/base_app_client.dart b/lib/core/service/client/base_app_client.dart index 5b6d0bb8..fde45219 100644 --- a/lib/core/service/client/base_app_client.dart +++ b/lib/core/service/client/base_app_client.dart @@ -296,12 +296,19 @@ class BaseAppClient { } } } else { - onFailure('Please Check The Internet Connection', -1); + onFailure('Please Check The Internet Connection 1', -1); _analytics.errorTracking.log("internet_connectivity", error: "no internet available"); } } catch (e) { print(e); - onFailure(e.toString(), -1); + print(e); + + if(e.toString().contains("ClientException")) { + onFailure('Something went wrong, plase try again', -1); + _analytics.errorTracking.log("internet_connectivity", error: "no internet available"); + }else{ + onFailure(e.toString(), -1); + } _analytics.errorTracking.log(endPoint, error: "api exception: $e - API Path: $url"); } } diff --git a/lib/pages/login/register_new_step_2.dart b/lib/pages/login/register_new_step_2.dart index 892a1dbf..7efbbef1 100644 --- a/lib/pages/login/register_new_step_2.dart +++ b/lib/pages/login/register_new_step_2.dart @@ -343,6 +343,8 @@ class _RegisterNew extends State { ), Expanded( child: CustomButton( + backgroundColor: Color(0xFF18C273), + borderColor: Color(0xFF18C273), text: TranslationBase.of(context).confirm, icon: "assets/images/svg/confirm.svg", onPressed: () { @@ -390,8 +392,8 @@ class _RegisterNew extends State { registerNow(); } }, - backgroundColor: Color(0xFFED1C2B), - borderColor: Color(0xFFED1C2B), + backgroundColor: Color(0xFF18C273), + borderColor: Color(0xFF18C273), textColor: Colors.white), ), ],