fix mention in composer and improve error handling

This commit is contained in:
Ren Amamiya
2023-09-01 15:57:31 +07:00
parent cc315a190a
commit e6d35bc635
10 changed files with 156 additions and 124 deletions

View File

@@ -1,4 +1,5 @@
import { invoke } from '@tauri-apps/api/tauri';
import { message } from '@tauri-apps/plugin-dialog';
import { useEffect, useState } from 'react';
import { useNDK } from '@libs/ndk/provider';
@@ -40,7 +41,10 @@ export function SplashScreen() {
} catch (e) {
setIsLoading(false);
setErrorMessage(e);
console.log('prefetch failed, error: ', e);
await message(`Something wrong: ${e}`, {
title: 'Lume',
type: 'error',
});
}
};