Fix error on build
This commit is contained in:
parent
2f2dfe17e1
commit
b506d5dd56
|
|
@ -4,6 +4,7 @@ function Versions(): React.JSX.Element {
|
||||||
const [versions] = useState(window.electron.process.versions)
|
const [versions] = useState(window.electron.process.versions)
|
||||||
const [appVersion, setAppVersion] = useState()
|
const [appVersion, setAppVersion] = useState()
|
||||||
|
|
||||||
|
// @ts-ignore (define in dts)
|
||||||
window.electron.getVersion().then(version => setAppVersion(version))
|
window.electron.getVersion().then(version => setAppVersion(version))
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue