Skip to content

Commit bfa27b4

Browse files
committed
fix:patched answer key button not working
1 parent 161e35e commit bfa27b4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/CatalogueContent.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export async function downloadFile(url: string, filename: string) {
2323
link.download = filename;
2424
link.click();
2525
window.URL.revokeObjectURL(link.href);
26-
} catch (error) {}
26+
} catch (error) { }
2727
}
2828

2929
const CatalogueContent = () => {
@@ -99,7 +99,7 @@ const CatalogueContent = () => {
9999
? selectedCampuses.includes(paper.campus)
100100
: true;
101101
const answerkeyCondition = selectedAnswerKeyIncluded
102-
? paper.answerKeyIncluded
102+
? paper.answerKeyIncluded === true
103103
: true;
104104
return (
105105
examCondition &&
@@ -118,7 +118,7 @@ const CatalogueContent = () => {
118118
setError(
119119
axios.isAxiosError(axiosError)
120120
? ((axiosError.response?.data as { message?: string })?.message ??
121-
"Error fetching papers")
121+
"Error fetching papers")
122122
: "Error fetching papers",
123123
);
124124
} finally {

0 commit comments

Comments
 (0)