fix: delete cards
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
kieran 2024-07-11 12:21:27 +01:00
parent 815599f173
commit 2294bafeea
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941
3 changed files with 2 additions and 5 deletions

View File

@ -52,7 +52,8 @@
"start": "vite",
"build": "vite build",
"intl-extract": "formatjs extract 'src/**/*.ts*' --ignore='**/*.d.ts' --out-file src/lang.json --flatten true",
"intl-compile": "formatjs compile src/lang.json --out-file src/translations/en.json"
"intl-compile": "formatjs compile src/lang.json --out-file src/translations/en.json",
"pre:commit": "yarn intl-extract && yarn intl-compile && yarn prettier --write ."
},
"eslintConfig": {
"extends": [

View File

@ -6,7 +6,6 @@ import { SnortContext } from "@snort/system-react";
import { CardItem } from ".";
import { USER_CARDS } from "@/const";
import { useLogin } from "@/hooks/login";
import { Login } from "@/login";
import { Tags } from "@/types";
import { findTag } from "@/utils";
import { EditCard } from "./edit-card";
@ -88,7 +87,6 @@ export function Card({ canEdit, ev, cards }: CardProps) {
});
console.debug(userCardsEv);
await system.BroadcastEvent(userCardsEv);
Login.setCards(newTags, userCardsEv.created_at);
}
},
}),

View File

@ -1,6 +1,5 @@
import { CARD, USER_CARDS } from "@/const";
import { useLogin } from "@/hooks/login";
import { Login } from "@/login";
import { removeUndefined } from "@snort/shared";
import { TaggedNostrEvent, NostrLink } from "@snort/system";
import { SnortContext } from "@snort/system-react";
@ -60,7 +59,6 @@ export function EditCard({ card, cards }: EditCardProps) {
console.debug(userCardsEv);
await system.BroadcastEvent(userCardsEv);
Login.setCards(newTags, userCardsEv.created_at);
setOpen(false);
}
}