We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ebe2b4e commit 77bb12eCopy full SHA for 77bb12e
2 files changed
source/src/hooks/usePyPIVersion.ts
@@ -2,7 +2,7 @@
2
import { fetchLatestQectorVersion } from '../lib/pypiVersion';
3
4
export function usePyPIVersion() {
5
- const [version, setVersion] = useState<string>('');
+ const [version, setVersion] = useState<string>('0.6.2');
6
const [loading, setLoading] = useState(true);
7
8
useEffect(() => {
source/src/lib/pypiVersion.ts
@@ -6,9 +6,9 @@
const doc = parser.parseFromString(text, 'text/xml');
const firstTitle = doc.querySelector('item title')?.textContent || '';
const match = firstTitle.match(/qector-decoder-v3\s+([\d.]+)/);
9
- return match ? match[1] : '';
+ return match ? match[1] : '0.6.2';
10
} catch (e) {
11
console.error('Failed to fetch PyPI RSS for qector-decoder-v3', e);
12
- return '';
+ return '0.6.2';
13
}
14
0 commit comments