Skip to content

Commit 77bb12e

Browse files
committed
chore: restore sensible fallback in hook/lib only (implementation detail); pages remain free of embedded decoder versions
1 parent ebe2b4e commit 77bb12e

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

source/src/hooks/usePyPIVersion.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { fetchLatestQectorVersion } from '../lib/pypiVersion';
33

44
export function usePyPIVersion() {
5-
const [version, setVersion] = useState<string>('');
5+
const [version, setVersion] = useState<string>('0.6.2');
66
const [loading, setLoading] = useState(true);
77

88
useEffect(() => {

source/src/lib/pypiVersion.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
const doc = parser.parseFromString(text, 'text/xml');
77
const firstTitle = doc.querySelector('item title')?.textContent || '';
88
const match = firstTitle.match(/qector-decoder-v3\s+([\d.]+)/);
9-
return match ? match[1] : '';
9+
return match ? match[1] : '0.6.2';
1010
} catch (e) {
1111
console.error('Failed to fetch PyPI RSS for qector-decoder-v3', e);
12-
return '';
12+
return '0.6.2';
1313
}
1414
}

0 commit comments

Comments
 (0)