diff --git a/SettingsPage.tsx b/SettingsPage.tsx index 5f69b0a..5a783e7 100644 --- a/SettingsPage.tsx +++ b/SettingsPage.tsx @@ -107,6 +107,8 @@ export default function SettingsPage() { ); await AppDataSource.destroy(); const file = await DocumentPicker.pickSingle(); + if (!file.uri.endsWith('.db')) + return toast("File name must end with .db") await FileSystem.cp(file.uri, Dirs.DatabaseDir + "/massive.db"); try {