chore: clean up

This commit is contained in:
reya
2024-08-28 08:48:17 +07:00
parent f6eb5eea44
commit d128af1db8
27 changed files with 311 additions and 741 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
import { commands } from "@/commands.gen";
import { checkForAppUpdates } from "@/commons";
import { NostrAccount } from "@/system";
import { createFileRoute, redirect } from "@tanstack/react-router";
export const Route = createFileRoute("/")({
@@ -8,7 +8,7 @@ export const Route = createFileRoute("/")({
await checkForAppUpdates(true);
// Get all accounts
const accounts = await NostrAccount.getAccounts();
const accounts = await commands.getAccounts();
if (accounts.length < 1) {
throw redirect({