fix(reactions) Remove auth header if there's no JWT

This commit is contained in:
Robert Pintilii 2021-11-03 17:43:47 +02:00 committed by GitHub
parent c2e55339d1
commit f27cb46f3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ export async function sendReactionsWebhook(state: Object, reactions: Array<?stri
const localParticipant = getLocalParticipant(state); const localParticipant = getLocalParticipant(state);
const headers = { const headers = {
'Authorization': `Bearer ${jwt}`, ...jwt ? { 'Authorization': `Bearer ${jwt}` } : {},
'Content-Type': 'application/json' 'Content-Type': 'application/json'
}; };