Skip to content

Commit

Permalink
Fixed YPP sign-in navigation loop (#5041)
Browse files Browse the repository at this point in the history
* fixed navigation loop

* lint

* closing modal after redirect

---------

Co-authored-by: Artem <Artem Slugin>
  • Loading branch information
attemka authored Oct 20, 2023
1 parent 8d81aa9 commit 21d2d82
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@ export const YppAuthorizationModal: FC<YppAuthorizationModalProps> = ({ unSynced

if (yppCurrentChannel) {
navigate(absoluteRoutes.studio.yppDashboard())
handleClose()
}

if (yppUnsyncedChannels?.length) {
Expand Down Expand Up @@ -470,6 +471,7 @@ export const YppAuthorizationModal: FC<YppAuthorizationModalProps> = ({ unSynced
yppCurrentChannel,
yppUnsyncedChannels,
navigate,
handleClose,
setSelectedChannelId,
setYppModalOpenName,
trackClickAuthModalSignUpButton,
Expand Down

0 comments on commit 21d2d82

Please sign in to comment.