Skip to content

Open-source personal finance manager. Self-hosted, privacy-first.

332 B
Raw Blame
type PendingBadgeTransaction = {
  source: string | null
  status: string | null
}

/** Bank-sync pending state already matches the provider and needs no UI badge. */
export function shouldShowPendingBadge(transaction: PendingBadgeTransaction): boolean {
  return transaction.status === 'pending' && transaction.source !== 'sync'
}