We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3798b3 commit 1307440Copy full SHA for 1307440
1 file changed
src/components/CommunityPortal/CPDashboard.jsx
@@ -43,13 +43,6 @@ export function CPDashboard() {
43
}, []);
44
45
const handleDateChange = date => {
46
- setDateError('');
47
-
48
- if (!date) {
49
- setSelectedDate('');
50
- return;
51
- }
52
53
const today = new Date();
54
today.setHours(0, 0, 0, 0); // midnight today
55
@@ -58,7 +51,7 @@ export function CPDashboard() {
58
setSelectedDate('');
59
return;
60
}
61
+ setDateError('');
62
setSelectedDate(date);
63
56
};
64
57
@@ -120,7 +113,6 @@ export function CPDashboard() {
120
113
)}
121
114
</div>
122
115
123
124
116
<div className="filter-item">
125
117
<label htmlFor="online-only">Online</label>
126
118
<div>
0 commit comments