style(banking): replace dash placeholders in activity feed and timestamps
This commit is contained in:
parent
a8d1a8870e
commit
12b19b3d6a
2 changed files with 2 additions and 2 deletions
|
|
@ -45,7 +45,7 @@ function resolveAccountLabel(account: (number | null) | BankAccount | undefined)
|
|||
label: string;
|
||||
id: number | null;
|
||||
} {
|
||||
if (!account) return { label: "—", id: null };
|
||||
if (!account) return { label: "-", id: null };
|
||||
if (typeof account === "object") {
|
||||
return { label: account.name ?? `#${account.id}`, id: account.id };
|
||||
}
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ export function txAmountPrefix(flow: TxFlow): string {
|
|||
*/
|
||||
export function formatTxTimestamp(ts: string): string {
|
||||
const date = new Date(ts);
|
||||
if (Number.isNaN(date.getTime())) return "—";
|
||||
if (Number.isNaN(date.getTime())) return "-";
|
||||
const now = new Date();
|
||||
const isToday = date.toDateString() === now.toDateString();
|
||||
if (isToday) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue