feat(#23): use landlord profiles in PDFs
This commit is contained in:
1 parent
ac5a7942c9
commit
668680e844
17 files changed
+221
-39
No files matched your search
@@ -0,0 +1,11 @@
|
||||
export function httpErrorMessage(error: unknown, fallback: string): string {
|
||||
return typeof error === 'object' &&
|
||||
error !== null &&
|
||||
'error' in error &&
|
||||
typeof error.error === 'object' &&
|
||||
error.error !== null &&
|
||||
'message' in error.error &&
|
||||
typeof error.error.message === 'string'
|
||||
? error.error.message
|
||||
: fallback;
|
||||
}
|
||||
Reference in new issue
Block a user