File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ export const getOptionDisplayStr: GetOptionDisplayStr = (array) => {
4040export const askForChallenges : AskForChallenges = async ( lessons ) => {
4141 const lessonsByOrder = getMapFromOptions ( lessons )
4242 displayBoxUI ( getOptionDisplayStr ( lessons ) . trimEnd ( ) )
43- const { lessonOrder } : { lessonOrder : string } = await prompt ( [
43+ const { lessonOrder } : { lessonOrder : number } = await prompt ( [
4444 {
4545 type : 'input' ,
4646 name : 'lessonOrder' ,
@@ -61,7 +61,7 @@ export const askForChallenges: AskForChallenges = async (lessons) => {
6161 getOptionDisplayStr ( lessonsByOrder [ lessonOrder ] . challenges ) . trimEnd ( )
6262 )
6363
64- const { challengeOrder } : { challengeOrder : string } = await prompt ( [
64+ const { challengeOrder } : { challengeOrder : number } = await prompt ( [
6565 {
6666 type : 'input' ,
6767 name : 'challengeOrder' ,
Original file line number Diff line number Diff line change @@ -32,7 +32,8 @@ export const sendSubmission: SendSubmission = async (
3232 spinner . start ( 'Sending...' )
3333 await request ( url , POST_SUBMISSION , submission )
3434 spinner . succeed ( SUBMISSION_SUCCEED )
35- } catch {
35+ } catch ( err ) {
36+ console . log ( err )
3637 spinner . stop ( )
3738 throw new Error ( SUBMISSION_ERROR )
3839 }
You can’t perform that action at this time.
0 commit comments