Skip to content
Snippets Groups Projects
Commit 69e1f58a authored by Pedro Beschorner Marin's avatar Pedro Beschorner Marin
Browse files

refactor(closed captions): useless conditional

This use of variable 'ownerId' always evaluates to true.
parent 6ce16bed
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