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 25ac94a commit 9150830Copy full SHA for 9150830
src/hooks/useNotifications.ts
@@ -124,12 +124,21 @@ export const useNotifications = (colors: boolean): NotificationsState => {
124
) {
125
return notification;
126
}
127
+ const isEnterprise =
128
+ accountNotifications.hostname !==
129
+ Constants.DEFAULT_AUTH_OPTIONS.hostname;
130
+ const token = isEnterprise
131
+ ? getEnterpriseAccountToken(
132
+ accountNotifications.hostname,
133
+ accounts.enterpriseAccounts,
134
+ )
135
+ : accounts.token;
136
137
const cardinalData = (
138
await apiRequestAuth(
139
notification.subject.url,
140
'GET',
- accounts.token,
141
+ token,
142
)
143
).data;
144
0 commit comments