Skip to content

Commit

Permalink
fix: small bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
N3TC4T committed Nov 27, 2024
1 parent c98ee3b commit 35b931f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/screens/Home/HomeView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -299,13 +299,13 @@ class HomeView extends Component<Props, State> {
small
testID="request-button"
containerStyle={
experimentalUI ? styles.requestButtonContainerGrey : styles.requestButtonContainer
experimentalUI ? styles.requestButtonContainerClean : styles.requestButtonContainer
}
icon="IconCornerRightDown"
iconSize={18}
iconStyle={styles.requestButtonIcon}
iconStyle={experimentalUI ? styles.requestButtonIconClean : styles.requestButtonIcon}
label={Localize.t('global.request')}
textStyle={styles.requestButtonText}
textStyle={experimentalUI ? styles.requestButtonTextClean : styles.requestButtonText}
onPress={this.onShowAccountQRPress}
/>
</View>
Expand Down
8 changes: 5 additions & 3 deletions src/screens/Home/styles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,15 @@ const styles = StyleService.create({
backgroundColor: '$green',
},

requestButtonIcon: { tintColor: '$textPrimary' },
requestButtonText: { fontSize: AppFonts.base.size, color: '$textPrimary' },
requestButtonIcon: { tintColor: '$white' },
requestButtonText: { fontSize: AppFonts.base.size, color: '$white' },

requestButtonContainerGrey: {
requestButtonContainerClean: {
marginLeft: 15,
backgroundColor: '$tint',
},
requestButtonIconClean: { tintColor: '$textPrimary' },
requestButtonTextClean: { fontSize: AppFonts.base.size, color: '$textPrimary' },

QRButtonText: { fontSize: AppFonts.base.size },

Expand Down
2 changes: 1 addition & 1 deletion src/services/AccountService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class AccountService extends EventEmitter {
return new Promise<void>((resolve, reject) => {
try {
// set current default account
this.account = settings.account.address;
this.account = settings.account?.address;

// list for any default account change
CoreRepository.on('updateSettings', this.onSettingsUpdate);
Expand Down

0 comments on commit 35b931f

Please sign in to comment.