Skip to content

Commit

Permalink
fix(TNSHomeScreen): Fix disabled condition for Register and Manage TNS
Browse files Browse the repository at this point in the history
- Fix the disabled condition for the Register FlowCard to only disable it when either Keplr or Leap is not connected.
- Fix the disabled condition for the Manage FlowCard to disable it when either Keplr or Leap is not connected, or when there are no tokens available.
  • Loading branch information
omniwired committed Sep 25, 2023
1 parent c9df22d commit 3999d7b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/screens/TeritoriNameService/TNSHomeScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export const TNSHomeScreen: ScreenFC<"TNSHome"> = ({ route }) => {
}}
>
<FlowCard
disabled={!isKeplrConnected || !isLeapConnected}
disabled={!isKeplrConnected && !isLeapConnected}
label="Register"
description="Register and configure a new name"
iconSVG={registerSVG}
Expand All @@ -170,7 +170,9 @@ export const TNSHomeScreen: ScreenFC<"TNSHome"> = ({ route }) => {
}
/>
<FlowCard
disabled={!isKeplrConnected || !isLeapConnected || !tokens?.length}
disabled={
(!isKeplrConnected && !isLeapConnected) || !tokens?.length
}
label="Manage"
description="Transfer, edit, or burn a name that you own"
iconSVG={penSVG}
Expand Down

0 comments on commit 3999d7b

Please sign in to comment.