We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48404ea commit 85e6feeCopy full SHA for 85e6fee
libs/perun/services/src/lib/other-applications.service.ts
@@ -26,7 +26,14 @@ export class OtherApplicationsService {
26
return brand;
27
}
28
29
- return brands[0];
+ // return the default brand if NO brand domain is the same as the current domain
30
+ const defaultBrand = brands.filter((brand) => brand.name === 'default')[0];
31
+ if (defaultBrand) {
32
+ return defaultBrand;
33
+ } else {
34
+ // if the default brand doesn't exist, return the first brand in the list
35
+ return brands[0];
36
+ }
37
38
39
/**
0 commit comments