We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e0d69e commit 1a115f1Copy full SHA for 1a115f1
1 file changed
src/pages/settings/organization/billing/coupon.tsx
@@ -8,17 +8,19 @@ import { notify } from 'src/application/notify';
8
import { ControlledInput } from 'src/components/controlled';
9
import { SectionHeader } from 'src/components/section-header';
10
import { FormValues, handleSubmit } from 'src/hooks/form';
11
+import { useSearchParams } from 'src/hooks/router';
12
import { createTranslate } from 'src/intl/translate';
13
14
const T = createTranslate('pages.organizationSettings.billing.coupon');
15
16
export function Coupon() {
17
+ const params = useSearchParams();
18
const organization = useOrganization();
19
const t = T.useTranslate();
20
21
const form = useForm({
22
defaultValues: {
- code: '',
23
+ code: params.get('coupon') ?? '',
24
},
25
});
26
0 commit comments