Skip to content

Commit

Permalink
Prevent unnecessary closing of publish preview
Browse files Browse the repository at this point in the history
  • Loading branch information
miko committed Sep 6, 2024
1 parent e61405b commit 758c6cf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ui/modal/modalPublishPreview/view.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ type Props = {
setEnablePublishPreview: (boolean) => void,
isStillEditing: boolean,
myChannels: ?Array<ChannelClaim>,
publishSuccess: boolean,
// publishSuccess: boolean,
publishing: boolean,
isLivestreamClaim: boolean,
remoteFile: ?string,
Expand Down Expand Up @@ -101,7 +101,7 @@ const ModalPublishPreview = (props: Props) => {
setEnablePublishPreview,
isStillEditing,
myChannels,
publishSuccess,
// publishSuccess,
publishing,
publish,
closeModal,
Expand Down Expand Up @@ -391,6 +391,7 @@ const ModalPublishPreview = (props: Props) => {
// **************************************************************************

// @if TARGET='web'
/*
React.useEffect(() => {
if (publishing && !livestream) {
closeModal();
Expand All @@ -399,7 +400,7 @@ const ModalPublishPreview = (props: Props) => {
}
}, [publishSuccess, publishing, livestream, closeModal]);
// @endif

*/
// **************************************************************************
// **************************************************************************

Expand Down

0 comments on commit 758c6cf

Please sign in to comment.