Skip to content

Commit

Permalink
Merge pull request #237 from codeforjapan/develop
Browse files Browse the repository at this point in the history
release 20230928
  • Loading branch information
ayuki-joto authored Sep 28, 2023
2 parents b56455f + 0700868 commit 027abde
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ import Cloud from 'components/atoms/emissions/Cloud'
import { useEmissionResult } from 'hooks/emission'

type Props = {
category: Questions.QuestionCategory
category: Questions.QuestionCategory,
shareId?: string
}

const CompletionHeader: FC<Props> = (props) => {
const result = useEmissionResult(props.category)
const result = useEmissionResult(props.category, props.shareId)
const total = useMemo(() => {
const r = result[props.category]
return r ? Math.round(r.find((m) => m.key === 'total')?.value || 0) : 0
Expand Down
2 changes: 1 addition & 1 deletion pages/category/[category]/completion/[shareId].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const CompletionPage: NextPage<Params> = ({ category, shareId }) => {

return (
<QuestionContainer category={category}>
<CompletionHeader category={category} />
<CompletionHeader category={category} shareId={shareId} />
<CompletionContent category={category} shareId={shareId} />
<Box pt={14}>
<BasicButton isNext onClick={() => router.push(process.env.NEXT_PUBLIC_SHARE_URL ?? '/')} width="full">
Expand Down

1 comment on commit 027abde

@vercel
Copy link

@vercel vercel bot commented on 027abde Sep 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.