Skip to content

Commit

Permalink
[#920 - bug 2] DRep details page Back button fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JanJaroszczak committed May 7, 2024
1 parent b919a42 commit c9d0c5a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions govtool/frontend/src/pages/DRepDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,8 @@ export const DRepDetails = ({ isConnected }: DRepDetailsProps) => {
<>
<LinkWithIcon
data-testid="back-to-list-button"
label={t("backToList")}
onClick={() =>
navigate(
isConnected ? PATHS.dashboardDRepDirectory : PATHS.dRepDirectory,
)
}
label={t("back")}
onClick={() => navigate(-1)}
sx={{ mb: 2 }}
/>
<Card
Expand Down

0 comments on commit c9d0c5a

Please sign in to comment.