Skip to content

Commit

Permalink
Redirect to mypools if doesnt support classic
Browse files Browse the repository at this point in the history
  • Loading branch information
neikop committed Dec 5, 2023
1 parent af77a3c commit f78c435
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/ClassicElasticTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,11 @@ function ClassicElasticTab() {
<ElasticHackedModal
isOpen={isOpenElasticHacked}
onClose={() => {
handleSwitchTab(VERSION.CLASSIC)
if (notSupportedClassicMsg) {
navigate({ pathname: APP_PATHS.MY_POOLS })
} else {
handleSwitchTab(VERSION.CLASSIC)
}
}}
onConfirm={() => {
navigate({ pathname: APP_PATHS.MY_POOLS })
Expand Down

0 comments on commit f78c435

Please sign in to comment.