File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/pages/settings/organization/billing Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -6,17 +6,19 @@ import { notify } from 'src/application/notify';
6
6
import { ControlledInput } from 'src/components/controlled' ;
7
7
import { SectionHeader } from 'src/components/section-header' ;
8
8
import { handleSubmit } from 'src/hooks/form' ;
9
+ import { useSearchParams } from 'src/hooks/router' ;
9
10
import { createTranslate , Translate } from 'src/intl/translate' ;
10
11
11
12
const T = createTranslate ( 'pages.organizationSettings.billing.coupon' ) ;
12
13
13
14
export function Coupon ( ) {
15
+ const params = useSearchParams ( ) ;
14
16
const organization = useOrganization ( ) ;
15
17
const t = T . useTranslate ( ) ;
16
18
17
19
const form = useForm ( {
18
20
defaultValues : {
19
- coupon : '' ,
21
+ coupon : params . get ( 'coupon' ) ?? '' ,
20
22
} ,
21
23
} ) ;
22
24
You can’t perform that action at this time.
0 commit comments