Skip to content

Commit

Permalink
fix index error
Browse files Browse the repository at this point in the history
  • Loading branch information
a3510377 committed Apr 12, 2024
1 parent f8c2d2e commit baeeea8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
npm install @google/clasp -g

clasp login

clasp push
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const onFormSubmit = ({
'請問想報考的組別與語言?(選擇將會影響考題)\nWhich category and language are you applying? (Choices will affect questions you get)'
].shift(),
score: namedValues['分數'].shift(),
ID: range.getRowIndex() - 1,
ID: range.getRowIndex() - 3,
};

const [, score] = data.score?.match(/(\d+) \/ \d+/) || [];
Expand Down

0 comments on commit baeeea8

Please sign in to comment.