Skip to content

Commit

Permalink
Fix: backup
Browse files Browse the repository at this point in the history
  • Loading branch information
Batorian committed Jun 10, 2024
1 parent 653c413 commit 10b7cbb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ function CreateBackup({

const prepare = async () => {
setFetching(true);
let rootFolder = await exists('LNReaderTest', true, undefined, true);
let rootFolder = await exists('LNReader', true, undefined, true);
if (!rootFolder) {
rootFolder = await makeDir('LNReaderTest');
rootFolder = await makeDir('LNReader');
}
const backupFolderName = backupName.trim() + '.backup';
let backupFolder = await exists(backupFolderName, true, rootFolder.id);
Expand Down Expand Up @@ -157,7 +157,7 @@ function RestoreBackup({
}) {
const [backupList, setBackupList] = useState<DriveFile[]>([]);
useEffect(() => {
exists('LNReaderTest', true, undefined, true).then(rootFolder => {
exists('LNReader', true, undefined, true).then(rootFolder => {
if (rootFolder) {
getBackups(rootFolder.id, true).then(backups => setBackupList(backups));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ function SetHost({
fetchTimeout(host, {}, 2000)
.then(res => res.json())
.then(data => {
if (data.name === 'LNReaderTest') {
if (data.name === 'LNReader') {
setBackupModal(BackupModal.CONNECTED);
} else {
throw new Error(getString('backupScreen.remote.unknownHost'));
Expand Down

0 comments on commit 10b7cbb

Please sign in to comment.