Skip to content
Snippets Groups Projects
Unverified Commit 89f5bc57 authored by Anton Georgiev's avatar Anton Georgiev Committed by GitHub
Browse files

Merge pull request #12333 from pedrobmarin/ref-cc-uc

refactor(closed captions): useless conditional
parents 6ce16bed 69e1f58a
No related branches found
No related tags found
No related merge requests found
......@@ -25,7 +25,7 @@ const getPadURL = (padId, readOnlyPadId, ownerId) => {
const userId = Auth.userID;
const params = getPadParams();
let url;
if (!ownerId || (ownerId && userId === ownerId)) {
if (!ownerId || userId === ownerId) {
url = Auth.authenticateURL(`${NOTE_CONFIG.url}/p/${padId}?${params}`);
} else {
url = Auth.authenticateURL(`${NOTE_CONFIG.url}/p/${readOnlyPadId}?${params}`);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment