Skip to content

Modular logistics and supply chain operating system (LSOS)

fix(auth): stop verification resend on empty phone/email

ANSHSINGH050404827116e527f1
diff --git a/console/app/controllers/auth/verification.js b/console/app/controllers/auth/verification.js
index 166b309d..e38a14b5 100644
--- a/console/app/controllers/auth/verification.js
+++ b/console/app/controllers/auth/verification.js
@@ -100,6 +100,7 @@ export default class AuthVerificationController extends Controller {
const phone = modal.getOption('phone');
if (!phone) {
this.notifications.error('No phone number provided.');
+ return modal.stopLoading();
}
try {
@@ -124,6 +125,7 @@ export default class AuthVerificationController extends Controller {
const email = modal.getOption('email');
if (!email) {
this.notifications.error('No email number provided.');
+ return modal.stopLoading();
}
try {