diff --git a/apps/studio/components/interfaces/Database/Functions/CreateFunction/index.tsx b/apps/studio/components/interfaces/Database/Functions/CreateFunction/index.tsx index d32e9aaae95..fd966494bdf 100644 --- a/apps/studio/components/interfaces/Database/Functions/CreateFunction/index.tsx +++ b/apps/studio/components/interfaces/Database/Functions/CreateFunction/index.tsx @@ -134,6 +134,7 @@ const CreateFunction = ({ func, visible, setVisible }: CreateFunctionProps) => { useEffect(() => { if (visible) { + setFocusedEditor(false) form.reset({ name: func?.name ?? '', schema: func?.schema ?? 'public', diff --git a/apps/studio/pages/new/[slug].tsx b/apps/studio/pages/new/[slug].tsx index 91039295485..ce537860dca 100644 --- a/apps/studio/pages/new/[slug].tsx +++ b/apps/studio/pages/new/[slug].tsx @@ -951,8 +951,8 @@ const Wizard: NextPageWithLayout = () => { size="large" loading={false} visible={isComputeCostsConfirmationModalVisible} - title={<>Confirm compute costs} - confirmLabel="Confirm" + title="Confirm compute costs" + confirmLabel="I understand" onCancel={() => setIsComputeCostsConfirmationModalVisible(false)} onConfirm={async () => { const values = form.getValues() @@ -965,7 +965,7 @@ const Wizard: NextPageWithLayout = () => {

Launching a project on compute size "{instanceLabel(instanceSize)}" increases your monthly costs by ${additionalMonthlySpend}, independent of how actively you use it. By - clicking "Confirm", you agree to the additional costs.{' '} + clicking "I understand", you agree to the additional costs.{' '}