generate code

This commit is contained in:
hamid zarghami
2026-02-10 08:56:29 +03:30
parent e876d19a2e
commit c7ba5c6cf0
2 changed files with 2 additions and 2 deletions
@@ -22,7 +22,7 @@ const CouponBasicInfo: FC<CouponBasicInfoProps> = ({
const handleGenerateCode = () => {
generateCouponCode(undefined, {
onSuccess: (data) => {
formik.setFieldValue('code', data.data)
formik.setFieldValue('code', data?.data?.code)
},
onError: (error) => {