diff --git a/src/addons/userprofilefield/datetime/component/datetime.ts b/src/addons/userprofilefield/datetime/component/datetime.ts index d494cf549..c26355ce0 100644 --- a/src/addons/userprofilefield/datetime/component/datetime.ts +++ b/src/addons/userprofilefield/datetime/component/datetime.ts @@ -75,7 +75,7 @@ export class AddonUserProfileFieldDatetimeComponent extends CoreUserProfileField this.max = field.param2; } - this.max = this.max || CoreTimeUtils.getDatetimeDefaultMin(); + this.min = this.min || CoreTimeUtils.getDatetimeDefaultMin(); this.max = this.max || CoreTimeUtils.getDatetimeDefaultMax(); } diff --git a/src/core/features/login/pages/email-signup/email-signup.ts b/src/core/features/login/pages/email-signup/email-signup.ts index 8f130cd45..8aa65028e 100644 --- a/src/core/features/login/pages/email-signup/email-signup.ts +++ b/src/core/features/login/pages/email-signup/email-signup.ts @@ -55,7 +55,7 @@ export class CoreLoginEmailSignupPage implements OnInit { siteUrl!: string; siteConfig?: CoreSitePublicConfigResponse; siteName?: string; - authInstructions?: string; + authInstructions = ''; settings?: AuthEmailSignupSettings; countries?: CoreCountry[]; categories?: AuthEmailSignupProfileFieldsCategory[]; @@ -377,7 +377,7 @@ export class CoreLoginEmailSignupPage implements OnInit { * Show authentication instructions. */ showAuthInstructions(): void { - CoreTextUtils.viewText(Translate.instant('core.login.instructions'), this.authInstructions!); + CoreTextUtils.viewText(Translate.instant('core.login.instructions'), this.authInstructions); } /** @@ -419,7 +419,7 @@ export class CoreLoginEmailSignupPage implements OnInit { if (!result.status) { if (this.countryControl.value) { - this.signUpCountryControl!.setValue(this.countryControl.value); + this.signUpCountryControl?.setValue(this.countryControl.value); } // Not a minor, go ahead. @@ -428,7 +428,7 @@ export class CoreLoginEmailSignupPage implements OnInit { // Is a minor. this.isMinor = true; } - } catch (error) { + } catch { // Something wrong, redirect to the site. CoreDomUtils.showErrorModal('There was an error verifying your age, please try again using the browser.'); } finally {