Use proper buildLog variable for download button

This commit is contained in:
2025-01-06 15:37:47 -06:00
parent b22d92dfb3
commit eed66f96d7

View File

@@ -12,7 +12,7 @@ type DemoProps = {
const Demo = ({ class: className }: DemoProps) => {
const audioRef = useRef<HTMLAudioElement | null>(null);
const { id, downloads, executables, deleteDownload } = useSocket({
const { id, downloads, executables, deleteDownload, buildLog } = useSocket({
notify: (token) => {
audioRef.current!.play();
highlight(token);
@@ -66,7 +66,7 @@ const Demo = ({ class: className }: DemoProps) => {
<DownloadButton
key="download"
disabled={executables == null}
buildLog={"https://railway.com"}
buildLog={buildLog}
executables={executables}
/>
{downloads?.map((download, i) => (