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 = field.param2; | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         this.max = this.max || CoreTimeUtils.getDatetimeDefaultMin(); |         this.min = this.min || CoreTimeUtils.getDatetimeDefaultMin(); | ||||||
|         this.max = this.max || CoreTimeUtils.getDatetimeDefaultMax(); |         this.max = this.max || CoreTimeUtils.getDatetimeDefaultMax(); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -55,7 +55,7 @@ export class CoreLoginEmailSignupPage implements OnInit { | |||||||
|     siteUrl!: string; |     siteUrl!: string; | ||||||
|     siteConfig?: CoreSitePublicConfigResponse; |     siteConfig?: CoreSitePublicConfigResponse; | ||||||
|     siteName?: string; |     siteName?: string; | ||||||
|     authInstructions?: string; |     authInstructions = ''; | ||||||
|     settings?: AuthEmailSignupSettings; |     settings?: AuthEmailSignupSettings; | ||||||
|     countries?: CoreCountry[]; |     countries?: CoreCountry[]; | ||||||
|     categories?: AuthEmailSignupProfileFieldsCategory[]; |     categories?: AuthEmailSignupProfileFieldsCategory[]; | ||||||
| @ -377,7 +377,7 @@ export class CoreLoginEmailSignupPage implements OnInit { | |||||||
|      * Show authentication instructions. |      * Show authentication instructions. | ||||||
|      */ |      */ | ||||||
|     showAuthInstructions(): void { |     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 (!result.status) { | ||||||
|                 if (this.countryControl.value) { |                 if (this.countryControl.value) { | ||||||
|                     this.signUpCountryControl!.setValue(this.countryControl.value); |                     this.signUpCountryControl?.setValue(this.countryControl.value); | ||||||
|                 } |                 } | ||||||
| 
 | 
 | ||||||
|                 // Not a minor, go ahead.
 |                 // Not a minor, go ahead.
 | ||||||
| @ -428,7 +428,7 @@ export class CoreLoginEmailSignupPage implements OnInit { | |||||||
|                 // Is a minor.
 |                 // Is a minor.
 | ||||||
|                 this.isMinor = true; |                 this.isMinor = true; | ||||||
|             } |             } | ||||||
|         } catch (error) { |         } catch { | ||||||
|             // Something wrong, redirect to the site.
 |             // Something wrong, redirect to the site.
 | ||||||
|             CoreDomUtils.showErrorModal('There was an error verifying your age, please try again using the browser.'); |             CoreDomUtils.showErrorModal('There was an error verifying your age, please try again using the browser.'); | ||||||
|         } finally { |         } finally { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user