diff --git a/src/panels/firmware/Firmware.tsx b/src/panels/firmware/Firmware.tsx index 1e2872e..c45e6df 100644 --- a/src/panels/firmware/Firmware.tsx +++ b/src/panels/firmware/Firmware.tsx @@ -76,7 +76,7 @@ const Firmware = ({ onInstall }: Props) => { }; const fetchReleases = () => { - GithubService.getReleases(Boolean(showPrerelease)) + GithubService.getReleases(showPrerelease === "true") .then((releases) => { setReleases(releases); }) @@ -159,7 +159,16 @@ const Firmware = ({ onInstall }: Props) => { /> } > - + + setShowPrerelease( + ( + showPrerelease !== + "true" + ).toString() + ) + } + > {" "} { checked={ showPrerelease === "true" } - onChange={(event) => { - setShowPrerelease( - Boolean( - event.target.checked - ).toString() - ); - }} />