Skip to content

Commit

Permalink
fix(PBRW-432): navigate to the correct screen when adding artist s fr…
Browse files Browse the repository at this point in the history
…om MyC empty state (#11488)

* fix: navigate to the correct screen

* chore: fix tests
  • Loading branch information
dariakoko authored Feb 5, 2025
1 parent 957ae9a commit afe1515
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ describe(FooterButtons, () => {
expect(mockDismissModal).toHaveBeenCalled()
await flushPromiseQueue()

expect(navigate).toHaveBeenCalledWith("my-collection/artists/new", {
expect(navigate).toHaveBeenCalledWith("my-collection/collected-artists/new", {
passProps: {
source: Tab.collection,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ export const FooterButtons = ({
switchTab("profile")
dismissModal()
requestAnimationFrame(() => {
navigate("my-collection/artists/new", {
navigate("my-collection/collected-artists/new", {
passProps: {
source: Tab.collection,
},
Expand Down

0 comments on commit afe1515

Please sign in to comment.