Skip to content

Commit 1691f7e

Browse files
author
Ville Jyrkkä
committed
Clean up console logs, add comments.
1 parent 11e41ee commit 1691f7e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/helperFunctions/validateSettings.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,10 @@ export function mailSettingsValid (settings) {
4545

4646
// Validate email address setting
4747
export function contactEmailValid (settings) {
48-
49-
console.log(settings)
50-
48+
// Check all properties in nested structure
5149
if ((typeof settings !== 'undefined') && settings.contactForm) {
5250
if (settings.contactForm.toEmail) {
53-
console.log(settings.contactForm.toEmail)
51+
// Finally return true
5452
return true;
5553
}
5654
}

0 commit comments

Comments
 (0)