Skip to content

Commit

Permalink
await handleSave and added padding
Browse files Browse the repository at this point in the history
  • Loading branch information
tdanielles committed Jul 31, 2024
1 parent dd563df commit eeba4a7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions pages/hackerapps/[id]/basicinfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ export default ({ id, hackathons }) => {
color={COLOR.MIDNIGHT_PURPLE_DEEP}
contentColor={COLOR.WHITE}
hoverBackgroundColor={COLOR.MIDNIGHT_PURPLE_LIGHT}
onClick={() => {
handleSave(id)
onClick={async () => {
await handleSave(id)
}}
>
<Icon color={COLOR.WHITE} icon="save" />
Expand Down
4 changes: 2 additions & 2 deletions pages/hackerapps/[id]/skills.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ export default ({ id, hackathons }) => {
color={COLOR.MIDNIGHT_PURPLE_DEEP}
contentColor={COLOR.WHITE}
hoverBackgroundColor={COLOR.MIDNIGHT_PURPLE_LIGHT}
onClick={() => {
handleSave(id)
onClick={async () => {
await handleSave(id)
}}
>
<Icon color={COLOR.WHITE} icon="save" />
Expand Down
4 changes: 2 additions & 2 deletions pages/hackerapps/[id]/welcome.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ export default ({ id, hackathons }) => {
color={COLOR.MIDNIGHT_PURPLE_DEEP}
contentColor={COLOR.WHITE}
hoverBackgroundColor={COLOR.MIDNIGHT_PURPLE_LIGHT}
onClick={() => {
handleSave(id)
onClick={async () => {
await handleSave(id)
}}
>
<Icon color={COLOR.WHITE} icon="save" />
Expand Down
2 changes: 1 addition & 1 deletion utility/firebase.js
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ export const updateHackerAppQuestions = async (selectedHackathon, questions, cat
})

questions.forEach((question, index) => {
const newDocRef = categoryRef.doc(`${index}`)
const newDocRef = categoryRef.doc(`${index.toString().padStart(3, '0')}`)
batch.set(newDocRef, question)
})
await batch.commit()
Expand Down

0 comments on commit eeba4a7

Please sign in to comment.