diff --git a/src/framework/visualisation/react/ui/prompts/consent_form.tsx b/src/framework/visualisation/react/ui/prompts/consent_form.tsx index a7d08ff3..5e1da87e 100644 --- a/src/framework/visualisation/react/ui/prompts/consent_form.tsx +++ b/src/framework/visualisation/react/ui/prompts/consent_form.tsx @@ -21,6 +21,7 @@ export const ConsentForm = (props: Props): JSX.Element => { const tablesIn = React.useRef>(parseTables(props.tables)) const metaTables = React.useRef>(parseTables(props.metaTables)) const tablesOut = React.useRef>(tablesIn.current) + const [waiting, setWaiting] = React.useState(false) const { locale, resolve } = props const { description, donateQuestion, donateButton, cancelButton } = prepareCopy(props) @@ -101,6 +102,7 @@ export const ConsentForm = (props: Props): JSX.Element => { } function handleDonate (): void { + setWaiting(true) const value = serializeConsentData() resolve?.({ __type__: 'PayloadJSON', value }) } @@ -155,7 +157,7 @@ export const ConsentForm = (props: Props): JSX.Element => {
- +