File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
apps/site/components/Downloads/DownloadButton Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import Button from '@/components/Common/Button';
88import { useDetectOS } from '@/hooks' ;
99import type { NodeRelease } from '@/types' ;
1010import { getNodeDownloadUrl } from '@/util/getNodeDownloadUrl' ;
11+ import { getUserBitnessByArchitecture } from '@/util/getUserBitnessByArchitecture' ;
1112
1213import styles from './index.module.css' ;
1314
@@ -17,7 +18,12 @@ const DownloadButton: FC<PropsWithChildren<DownloadButtonProps>> = ({
1718 release : { versionWithPrefix } ,
1819 children,
1920} ) => {
20- const { os, bitness } = useDetectOS ( ) ;
21+ const {
22+ os,
23+ bitness : userBitness ,
24+ architecture : userArchitecture ,
25+ } = useDetectOS ( ) ;
26+ const bitness = getUserBitnessByArchitecture ( userArchitecture , userBitness ) ;
2127 const downloadLink = getNodeDownloadUrl ( versionWithPrefix , os , bitness ) ;
2228
2329 return (
You can’t perform that action at this time.
0 commit comments