Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ad1e106c authored by Ronak Patel's avatar Ronak Patel
Browse files

added null conditio

parent cce6fbba
Loading
Loading
Loading
Loading
Loading
+4 −7
Original line number Diff line number Diff line
@@ -48,19 +48,16 @@ export default {
			showRegistrationForm: true,
			showCaptchaForm: false,
			showRecoveryEmailForm: false,
			showSuccessSection: false,
			recoveryEmail: '',
			showSuccessSection: false
		}
	},
	mounted() {
		// Extracting the recovery email from the URL when the component is mounted
		const urlParams = new URLSearchParams(window.location.search)
		this.recoveryEmail = urlParams.get('recoveryEmail')
		if (!this.recoveryEmail) {
			this.recoveryEmail = ''
		}
		const recoveryEmail = urlParams.get('recoveryEmail')
		
		// Set formData.email directly to recoveryEmail
		this.formData.email = this.recoveryEmail
		this.formData.email = recoveryEmail ? recoveryEmail : ''
	},
	methods: {
		submitRegistrationForm(data) {