diff --git a/.husky/pre-commit b/.husky/pre-commit index bf41c98c..cb8cccbf 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,2 +1,2 @@ npm run package -git add . +git add dist/index.js diff --git a/dist/index.js b/dist/index.js index d7dca423..0d78adcf 100644 --- a/dist/index.js +++ b/dist/index.js @@ -14654,7 +14654,7 @@ async function commit(params) { { path: path.normalize(questionPath), mode: "100644", - content: questionData, + content: questionData ?? "Unable to fetch the Problem statement.", }, { path: path.normalize(solutionPath), diff --git a/src/action.js b/src/action.js index 39b10b8b..9f7589bb 100644 --- a/src/action.js +++ b/src/action.js @@ -165,7 +165,7 @@ async function commit(params) { { path: path.normalize(questionPath), mode: "100644", - content: questionData, + content: questionData ?? "Unable to fetch the Problem statement.", }, { path: path.normalize(solutionPath),