Skip to content

Commit 6406f8f

Browse files
committed
refactor: adjust onSettingsReturn assignment order for clarity
1 parent aac0e17 commit 6406f8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/editors/containers/VideoEditor/components/VideoEditorModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const VideoEditorModal: React.FC<Props> = ({
3838
const searchParams = new URLSearchParams(location.search);
3939
const selectedVideoId = searchParams.get('selectedVideoId');
4040
const selectedVideoUrl = searchParams.get('selectedVideoUrl');
41-
const onSettingsReturn = hooks.useReturnToGallery() || onReturn;
41+
const onSettingsReturn = onReturn || hooks.useReturnToGallery();
4242
const isLoaded = useSelector(
4343
(state) => selectors.requests.isFinished(state, { requestKey: RequestKeys.fetchVideos }),
4444
);

0 commit comments

Comments
 (0)