Skip to content

Commit dbfaf84

Browse files
committed
plan bugfixes
1 parent be66de4 commit dbfaf84

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/_includes/components/codepens/identify-spec.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,16 @@
5555
// Add regular expression check to make sure plan field is not empty
5656
var planRegex = /.+/;
5757
if (!planRegex.test(plan)) {
58-
planError = document.getElementById("plan-error");
58+
const planError = document.getElementById("plan-error");
5959
planError.style.display = "block";
60-
plan = document.getElementById("plan");
61-
plan.style.outline = "2px solid red";
60+
const planField = document.getElementById("plan");
61+
planField.style.outline = "2px solid red";
6262
errors.push("Plan is invalid");
6363
} else {
6464
const planError = document.getElementById("plan-error");
6565
planError.style.display = "none";
66-
const plan = document.getElementById("plan");
67-
plan.style.outline = "";
66+
const planField = document.getElementById("plan");
67+
planField.style.outline = "";
6868
}
6969

7070
// Regular expression check for login #s
@@ -233,6 +233,7 @@ <h4> Sample Identify </h4>
233233
<span class="error-message" id="email-error">Please enter a valid email address.</span>
234234
<label for="plan">Plan:</label>
235235
<input type="text" id="plan" value="Premium">
236+
<span class="error-message" id="plan-error">Please enter a valid Plan name.</span>
236237
<label for="logins">Logins:</label>
237238
<input type="text" id="logins" value="2">
238239
<span class="error-message" id="logins-error">Please enter only numbers in the 'Logins' field.</span>

0 commit comments

Comments
 (0)