♻️ refactor: remove unused code

This commit is contained in:
2026-08-13 02:32:29 +07:00
parent 5a290fcfa5
commit 3df22125dd
29 changed files with 60 additions and 588 deletions
+6
View File
@@ -5,6 +5,12 @@ export function getErrorMessage(error: unknown): string {
if (typeof error === "string") {
return error;
}
if (typeof error === "object" && error) {
const value = "value" in error ? error.value : error;
if (typeof value === "object" && value && "message" in value) {
return String(value.message);
}
}
return String(error);
}
export function getAge(timestamp: Date | string | undefined): string {