Skip to content

Commit

Permalink
Fix edit error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Levminer committed Jul 25, 2023
1 parent c06743b commit 9835447
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion interface/windows/edit/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export const loadSavedCodes = async () => {
const codes = settings.vault.codes

if (codes === null) {
await dialog.message("No save file found. \n\nGo to the codes or the import page and import your codes!", { type: "error" })
dialog.message("No save file found. \n\nGo to the codes or the import page and import your codes!", { type: "error" })

return navigate("import")
}
Expand Down
5 changes: 4 additions & 1 deletion interface/windows/export/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { encodeBase64, textConverter } from "../../utils/convert"
import { getSettings } from "../../stores/settings"
import qrcode from "qrcode-generator"
import { decryptData, verifyWebAuthnLogin } from "interface/utils/encryption"
import { navigate } from "@utils/navigate"

let codesArray: LibImportFile
let codesText: string
Expand Down Expand Up @@ -32,7 +33,9 @@ export const exportCodes = async () => {
codesArray = textConverter(decryptedText, 0)
codesText = decryptedText
} else {
return dialog.message("No save file found. \n\nGo to the codes or the import page and import your codes!", { type: "error" })
dialog.message("No save file found. \n\nGo to the codes or the import page and import your codes!", { type: "error" })

return navigate("import")
}
}

Expand Down

0 comments on commit 9835447

Please sign in to comment.