Skip to content

Commit 9a96523

Browse files
committed
Update Readme example to correct variable name mismatch
1 parent 6bc23e3 commit 9a96523

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ unsplash.search.photos({ query: 'dogs' }).then(result => {
435435
if (result.type === 'success') {
436436
const firstPhoto = result.response.results[0];
437437
unsplash.photos.trackDownload({
438-
downloadLocation: photo.links.download_location,
438+
downloadLocation: firstPhoto.links.download_location,
439439
});
440440
}
441441
});

0 commit comments

Comments
 (0)