Skip to content

Commit 3309fee

Browse files
committed
getOrganizationName(): handle case of no data provided
1 parent 51d6c5b commit 3309fee

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/stores/partners.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,11 @@ export const usePartnerStore = defineStore('partner', {
110110
// (it's assumed the ownership has changed and the assigner name does NOT
111111
// reflect the change).
112112

113-
const assignerNameLower = assignerName.toLowerCase();
113+
if (assignerName === undefined && assignerUUID === undefined
114+
&& ownerName === undefined)
115+
return 'Name Unavailable';
116+
117+
const assignerNameLower = assignerName?.toLowerCase();
114118
const ownerNameLower = ownerName?.toLowerCase();
115119

116120
if (ownerName && assignerNameLower !== ownerNameLower) {

0 commit comments

Comments
 (0)