Skip to content

Commit 3627e3f

Browse files
committed
MOBILE-3833 signup: Fix min date on datetime user profile
1 parent e38992b commit 3627e3f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/addons/userprofilefield/datetime/component/datetime.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export class AddonUserProfileFieldDatetimeComponent extends CoreUserProfileField
7575
this.max = field.param2;
7676
}
7777

78-
this.max = this.max || CoreTimeUtils.getDatetimeDefaultMin();
78+
this.min = this.min || CoreTimeUtils.getDatetimeDefaultMin();
7979
this.max = this.max || CoreTimeUtils.getDatetimeDefaultMax();
8080
}
8181

src/core/features/login/pages/email-signup/email-signup.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export class CoreLoginEmailSignupPage implements OnInit {
5555
siteUrl!: string;
5656
siteConfig?: CoreSitePublicConfigResponse;
5757
siteName?: string;
58-
authInstructions?: string;
58+
authInstructions = '';
5959
settings?: AuthEmailSignupSettings;
6060
countries?: CoreCountry[];
6161
categories?: AuthEmailSignupProfileFieldsCategory[];
@@ -377,7 +377,7 @@ export class CoreLoginEmailSignupPage implements OnInit {
377377
* Show authentication instructions.
378378
*/
379379
showAuthInstructions(): void {
380-
CoreTextUtils.viewText(Translate.instant('core.login.instructions'), this.authInstructions!);
380+
CoreTextUtils.viewText(Translate.instant('core.login.instructions'), this.authInstructions);
381381
}
382382

383383
/**
@@ -419,7 +419,7 @@ export class CoreLoginEmailSignupPage implements OnInit {
419419

420420
if (!result.status) {
421421
if (this.countryControl.value) {
422-
this.signUpCountryControl!.setValue(this.countryControl.value);
422+
this.signUpCountryControl?.setValue(this.countryControl.value);
423423
}
424424

425425
// Not a minor, go ahead.
@@ -428,7 +428,7 @@ export class CoreLoginEmailSignupPage implements OnInit {
428428
// Is a minor.
429429
this.isMinor = true;
430430
}
431-
} catch (error) {
431+
} catch {
432432
// Something wrong, redirect to the site.
433433
CoreDomUtils.showErrorModal('There was an error verifying your age, please try again using the browser.');
434434
} finally {

0 commit comments

Comments
 (0)