File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -25,8 +25,7 @@ function ContactInfoPage({selectedRole, validatorRef}) {
25
25
}
26
26
27
27
function firstSearchArgument ( ) {
28
- return decodeURIComponent ( window . location . search . substr ( 1 ) )
29
- . replace ( / & .* / , '' ) ;
28
+ return decodeURIComponent ( window . location . search . substr ( 1 ) . replace ( / & .* / , '' ) ) ;
30
29
}
31
30
32
31
function BookSelectorPage ( { selectedBooksRef} ) {
Original file line number Diff line number Diff line change @@ -26,8 +26,7 @@ function ContactInfoPage({selectedRole, validatorRef}) {
26
26
}
27
27
28
28
function firstSearchArgument ( ) {
29
- return decodeURIComponent ( window . location . search . substr ( 1 ) )
30
- . replace ( / & .* / , '' ) ;
29
+ return decodeURIComponent ( window . location . search . substr ( 1 ) . replace ( / & .* / , '' ) ) ;
31
30
}
32
31
33
32
function HowDidYouHear ( ) {
@@ -110,6 +109,10 @@ function FacultyForm({selectedRole, onPageChange}) {
110
109
const submitQueue = selectedBooks . slice ( ) ;
111
110
const iframe = document . getElementById ( form . target ) ;
112
111
112
+ if ( submitQueue . length === 0 ) {
113
+ return ;
114
+ }
115
+
113
116
// eslint-disable-next-line no-use-before-define
114
117
const submitAfterDelay = ( ) => setTimeout ( submitNextBook , 300 ) ;
115
118
You can’t perform that action at this time.
0 commit comments