Skip to content

Commit

Permalink
climbing: Fix photo url (#261)
Browse files Browse the repository at this point in the history
* climbing: Floating menu shortcuts

* climbing: Fix photo URL
  • Loading branch information
jvaclavik authored Mar 3, 2024
1 parent 95bf003 commit fe0bc69
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ export const ClimbingContextProvider = ({ children, feature }: Props) => {
const preparePhotosAndSet = (photoIndex?: number) => {
if (photoPaths === null) getAllRoutesPhotos();
if (!photoPath && photoPaths?.length > 0)
setPhotoPath(photoPaths[photoIndex || 0]);
setPhotoPath(photoPaths[photoIndex ?? 0]);
};

const loadPhotoRelatedData = () => {
Expand Down

0 comments on commit fe0bc69

Please sign in to comment.