Skip to content

Commit 1f717da

Browse files
committed
refactor: adjust onSettingsReturn assignment order for clarity
1 parent 2732eda commit 1f717da

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)