diff --git a/packages/protocol-dashboard/package-lock.json b/packages/protocol-dashboard/package-lock.json index 3318f9cfa28..ddeadb7738e 100644 --- a/packages/protocol-dashboard/package-lock.json +++ b/packages/protocol-dashboard/package-lock.json @@ -41,9 +41,9 @@ } }, "@audius/stems": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/@audius/stems/-/stems-0.3.3.tgz", - "integrity": "sha512-brm6za5f+zcNCyFWVXMR3j6l45cuMefPqMLK4rwbKlm7R9Tze+Cq3/MSLnWoGx2wP0+WBMYzr00QQL5MPWk+ZQ==", + "version": "0.3.4", + "resolved": "https://registry.npmjs.org/@audius/stems/-/stems-0.3.4.tgz", + "integrity": "sha512-gZm2ebG93T0yM2P+WdazwYBW5rQdyAXzwU49pue5eeqkSKMQ8ei945Q4PaPfeeI66GauruWAtqREleB4dUSZvA==", "requires": { "classnames": "^2.2.6", "lodash": "^4.17.20", diff --git a/packages/protocol-dashboard/package.json b/packages/protocol-dashboard/package.json index feaa72b6e25..e381ec88a5b 100644 --- a/packages/protocol-dashboard/package.json +++ b/packages/protocol-dashboard/package.json @@ -4,7 +4,7 @@ "private": true, "dependencies": { "@audius/libs": "1.1.5", - "@audius/stems": "^0.3.3", + "@audius/stems": "0.3.4", "@reduxjs/toolkit": "^1.4.0", "chart.js": "^2.9.3", "clsx": "^1.1.1", diff --git a/packages/protocol-dashboard/src/components/DelegatesModal/DelegatesModal.tsx b/packages/protocol-dashboard/src/components/DelegatesModal/DelegatesModal.tsx index 8858cb27166..dcb7408386f 100644 --- a/packages/protocol-dashboard/src/components/DelegatesModal/DelegatesModal.tsx +++ b/packages/protocol-dashboard/src/components/DelegatesModal/DelegatesModal.tsx @@ -69,8 +69,11 @@ const DelegatesModal: React.FC = ({ const pushRoute = usePushRoute() const onRowClick = useCallback( - (row: Delegator) => pushRoute(accountPage(row.address)), - [pushRoute] + (row: Delegator) => { + onClose() + pushRoute(accountPage(row.address)) + }, + [onClose, pushRoute] ) if (data.length === 0) { diff --git a/packages/protocol-dashboard/src/components/DelegatorsModal/DelegatorsModal.tsx b/packages/protocol-dashboard/src/components/DelegatorsModal/DelegatorsModal.tsx index c502cafa4d8..e1bf7ce1c06 100644 --- a/packages/protocol-dashboard/src/components/DelegatorsModal/DelegatorsModal.tsx +++ b/packages/protocol-dashboard/src/components/DelegatorsModal/DelegatorsModal.tsx @@ -117,9 +117,10 @@ const DelegatorsTable: React.FC = ({ const pushRoute = usePushRoute() const onRowClick = useCallback( (row: Delegator) => { + onClose() pushRoute(accountPage(row.address)) }, - [pushRoute] + [onClose, pushRoute] ) const renderTableRow = (data: Delegator) => {