Skip to content

Commit ad5415d

Browse files
committed
Only set accessToken if it is truthy.
1 parent 485e013 commit ad5415d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/actions/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function fetchDirections() {
6161
if (alternatives) options.push('alternatives=true');
6262
options.push('steps=true');
6363
options.push('overview=full');
64-
options.push('access_token=' + accessToken);
64+
if (accessToken) options.push('access_token=' + accessToken);
6565
request.abort();
6666
request.open('GET', `${api}${profile}/${query}.json?${options.join('&')}`, true);
6767

0 commit comments

Comments
 (0)