Skip to content

Commit

Permalink
Merge pull request #452 from juanky201271/dev_basic_mode_send_screen_…
Browse files Browse the repository at this point in the history
…with_spendable_pools

Activate send screen when there are spendable in some pool
  • Loading branch information
Oscar-Pepper authored Jul 18, 2023
2 parents 33b58bd + d4537f6 commit a514018
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions app/LoadedApp/LoadedApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1429,7 +1429,13 @@ export class LoadedAppClass extends Component<LoadedAppClassProps, AppStateLoade
(this.state.mode === 'basic' &&
(!(this.state.mode === 'basic' && this.state.transactions.length <= 0) ||
(!this.state.readOnly &&
!(this.state.mode === 'basic' && this.state.totalBalance.spendableOrchard <= 0)))) ? (
!(
this.state.mode === 'basic' &&
this.state.totalBalance.spendableOrchard +
this.state.totalBalance.spendablePrivate +
this.state.totalBalance.transparentBal <=
0
)))) ? (
<Tab.Navigator
initialRouteName={translate('loadedapp.wallet-menu') as string}
screenOptions={({ route }) => ({
Expand Down Expand Up @@ -1473,7 +1479,13 @@ export class LoadedAppClass extends Component<LoadedAppClassProps, AppStateLoade
</Tab.Screen>
)}
{!this.state.readOnly &&
!(this.state.mode === 'basic' && this.state.totalBalance.spendableOrchard <= 0) && (
!(
this.state.mode === 'basic' &&
this.state.totalBalance.spendableOrchard +
this.state.totalBalance.spendablePrivate +
this.state.totalBalance.transparentBal <=
0
) && (
<Tab.Screen name={translate('loadedapp.send-menu') as string}>
{() => (
<>
Expand Down

0 comments on commit a514018

Please sign in to comment.