Skip to content

Commit

Permalink
update terms agreed
Browse files Browse the repository at this point in the history
  • Loading branch information
imhson committed Oct 31, 2024
1 parent 0e90c50 commit d7de3c4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion src/pages/events/ava-2024/map/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ function Event() {
if (campainRoomStep == 4) {
setShowGuide(false)
setCampainDone(true)
router.push(`/campaigns/story-odyssey-badge`)
}
}, [campainRoomStep])

Expand Down Expand Up @@ -364,7 +365,7 @@ function Event() {
setArtRoomStep(-1)
setCharacterRoomStep(-1)
} else {
router.push(`/campaign`)
router.push(`/campaigns/story-odyssey-badge`)
}
} else {
setActive(4)
Expand Down
10 changes: 5 additions & 5 deletions src/pages/events/ava-2024/map/submit-portal/round3Submission.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default function Round3Submission() {
defaultValues: {
name: '',
image: undefined,
approveMint: true,
terms_agreed: true,
selectedsUserCharacter: [],
selectedCollectedCharacter: [],
selectedDefaultCharacter: [],
Expand Down Expand Up @@ -62,6 +62,7 @@ export default function Round3Submission() {
const payload = new FormData()
payload.append('name', data.name)
payload.append('artwork', data.image)
payload.append('terms_agreed', data.terms_agreed)
payload.append(
'artwork_characters',
JSON.stringify([
Expand Down Expand Up @@ -509,7 +510,7 @@ export default function Round3Submission() {
mattis augue facilisis a. Cras congue rhoncus odio. Learn more
</div>
<Controller
name='approveMint'
name='terms_agreed'
control={form.control}
render={({ field }) => (
<div className='flex gap-2 items-start' onClick={() => field.onChange(!field.value)}>
Expand All @@ -522,10 +523,9 @@ export default function Round3Submission() {
</div>
)}
/>

<button
type='submit'
className={`w-[217px] block rounded-md font-jaro text-2xl border border-white bg-black p-2.5 text-center cursor-pointer mt-6 ${
onClick={form.handleSubmit(submitHandler)}
className={`w-[217px] block rounded-md font-jaro text-2xl border border-white bg-black p-2.5 text-center cursor-pointer ${
loading && 'opacity-70 pointer-events-none'
}`}>
{t(loading ? 'Submitting' : 'submit2')}
Expand Down

0 comments on commit d7de3c4

Please sign in to comment.