Skip to content

Commit 36b5877

Browse files
committed
Submit button for AddCoachingSessionDialog should be disabled until there is data to be submitted
1 parent 3effbc6 commit 36b5877

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/ui/dashboard/add-coaching-session-dialog.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,9 @@ export function AddCoachingSessionDialog({
120120
required
121121
/>
122122
</div>
123-
<Button type="submit">Create Session</Button>
123+
<Button type="submit" disabled={!newSessionDate || !newSessionTime}>
124+
Create Session
125+
</Button>
124126
</form>
125127
</DialogContent>
126128
</Dialog>

0 commit comments

Comments
 (0)