Skip to content

Commit

Permalink
Disabling the button when no user or course is selected
Browse files Browse the repository at this point in the history
  • Loading branch information
pakzadjs committed Sep 25, 2024
1 parent ca75a94 commit 9f99657
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/(admin)/admin/students/AddLicense.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export default function AddLicense() {
className="w-full"
isLoading={generateLicenseLoading}
onClick={generateLicenseSumbitHandler}
// isDisabled={!generateLicenseFormik.isValid}
isDisabled={!selectedUser || !selectedCourse}
>
ثبت
</Button>
Expand Down

0 comments on commit 9f99657

Please sign in to comment.