Skip to content

Commit

Permalink
fixed lint error on programs
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewzpu committed Apr 8, 2024
1 parent 101aa2d commit 2d6009c
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions frontend/src/pages/programs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,18 @@ export default function Programs() {
const [programs, setPrograms] = useState<Program[]>([]);

useEffect(() => {
getAllPrograms().then((result) => {
if (result.success) {
setPrograms(result.data);
} else {
alert(result.error);
}
});
getAllPrograms().then(
(result) => {
if (result.success) {
setPrograms(result.data);
} else {
alert(result.error);
}
},
(error) => {
console.log(error);
},
);
}, []);

let mainClass = "h-full overflow-y-scroll no-scrollbar";
Expand Down

0 comments on commit 2d6009c

Please sign in to comment.