Skip to content

Commit

Permalink
Prevent unnecessary closing of publish preview (#3146)
Browse files Browse the repository at this point in the history
Co-authored-by: miko <[email protected]>
  • Loading branch information
keikari and miko authored Sep 6, 2024
1 parent e61405b commit 7048f6e
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 7048f6e

Please sign in to comment.