1
0
Fork 0

style(banking): replace dash placeholders in activity feed and timestamps

This commit is contained in:
Jason Fraley 2026-09-07 05:19:53 -04:00
parent a8d1a8870e
commit 12b19b3d6a
2 changed files with 2 additions and 2 deletions

View file

@ -45,7 +45,7 @@ function resolveAccountLabel(account: (number | null) | BankAccount | undefined)
label: string; label: string;
id: number | null; id: number | null;
} { } {
if (!account) return { label: "—", id: null }; if (!account) return { label: "-", id: null };
if (typeof account === "object") { if (typeof account === "object") {
return { label: account.name ?? `#${account.id}`, id: account.id }; return { label: account.name ?? `#${account.id}`, id: account.id };
} }

View file

@ -77,7 +77,7 @@ export function txAmountPrefix(flow: TxFlow): string {
*/ */
export function formatTxTimestamp(ts: string): string { export function formatTxTimestamp(ts: string): string {
const date = new Date(ts); const date = new Date(ts);
if (Number.isNaN(date.getTime())) return "—"; if (Number.isNaN(date.getTime())) return "-";
const now = new Date(); const now = new Date();
const isToday = date.toDateString() === now.toDateString(); const isToday = date.toDateString() === now.toDateString();
if (isToday) { if (isToday) {