Skip to content

Commit e340065

Browse files
committed
refactor(data): ♻️ move show error to seperate file
1 parent 5bdd031 commit e340065

File tree

7 files changed

+153
-218
lines changed

7 files changed

+153
-218
lines changed

src/helpers/utils.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,14 @@ export async function restate(
488488
return state
489489
}
490490

491+
export function filterPairedContacts(contact) {
492+
return !!contact.alias || !!contact.info?.name?.trim()
493+
}
494+
495+
export function filterUnpairedContacts(contact) {
496+
return !filterPairedContacts(contact)
497+
}
498+
491499
export function sortContactsByAlias(a, b) {
492500
const aliasA = a.alias || a.info?.preferred_username?.toUpperCase() || 'zzz';
493501
const aliasB = b.alias || b.info?.preferred_username?.toUpperCase() || 'zzz';

0 commit comments

Comments
 (0)