fix build issue

This commit is contained in:
Ren Amamiya
2023-09-04 07:44:57 +07:00
parent 21ea8309c7
commit 5d45027776
10 changed files with 91 additions and 99 deletions

View File

@@ -49,11 +49,9 @@ export function SplashScreen() {
};
useEffect(() => {
if (!db.account) {
invoke('close_splashscreen');
}
if (ndk) {
if (!db.account) invoke('close_splashscreen');
if (ndk && db.account) {
console.log('prefetching...');
prefetch();
}