MOBILE-3833 signup: Fix min date on datetime user profile
This commit is contained in:
		
							parent
							
								
									e38992b786
								
							
						
					
					
						commit
						3627e3fde5
					
				| @ -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(); | ||||
|     } | ||||
| 
 | ||||
|  | ||||
| @ -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 { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user