Skip to content

Commit 8a52a40

Browse files
committed
fix: fix bug with InputCTASection error message
1 parent cbc9f18 commit 8a52a40

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/logos-docusaurus-theme/src/client/components/mdx/InputCTASection/InputCTASection.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ export const InputCTASection: React.FC<InputCTASectionProps & Props> = ({
5959
)
6060

6161
const data = await res.json()
62-
console.log(data)
62+
6363
if (data?.result?.errors && data?.result?.errors[0]?.context?.length) {
64-
setMessage(data?.result?.errors[0].context[0].message)
64+
setMessage(data?.result?.errors[0].context.message)
6565
return
6666
}
6767

0 commit comments

Comments
 (0)