MCPcopy Create free account
hub / github.com/0010aor/FlashNotes / hasCardContentChanged

Function hasCardContentChanged

frontend/src/hooks/useCard.ts:13–15  ·  view source on GitHub ↗
(originalCard: CardData, modifiedCard: CardData)

Source from the content-addressed store, hash-verified

11}
12
13const hasCardContentChanged = (originalCard: CardData, modifiedCard: CardData): boolean => {
14 return modifiedCard.front !== originalCard.front || modifiedCard.back !== originalCard.back
15}
16
17export function useCard(collectionId: string, cardId?: string) {
18 const { t } = useTranslation()

Callers 1

useCardFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected