Skip to content

Commit

Permalink
fix reacthook component for volunteer present.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
root authored and root committed Jul 8, 2024
1 parent e1d1a6a commit e7359e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/app/volunteer/(volunteer)/Preset.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default function Preset({

useEffect(() => {
if (presetsList.length && !selected) setSelected(presetsList[0]);
}, [presets]);
}, [presets,presetsList,selected]);

function getExpiryDate(minutesValid: number) {
let now = new Date();
Expand Down

0 comments on commit e7359e5

Please sign in to comment.