Skip to content

Commit

Permalink
chore: add message handling logic to InputCTASection
Browse files Browse the repository at this point in the history
  • Loading branch information
jinhojang6 committed Feb 11, 2025
1 parent 19c2aad commit fc18894
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ export const InputCTASection: React.FC<InputCTASectionProps & Props> = ({
if (data?.result?.errors && data?.result?.errors[0]?.context?.length) {
setMessage(data?.result?.errors[0].context)
return
} else if (data?.result?.message?.length) {
setMessage(data.result.message)
return
}

setMessage('Thank you for subscribing!')
Expand Down

0 comments on commit fc18894

Please sign in to comment.