FIX: verify allowBIP47() first

This commit is contained in:
Marcos Rodriguez Velez 2024-06-10 17:03:02 -04:00
parent 64ab135250
commit 946ce71830
No known key found for this signature in database
GPG key ID: 6030B2F48CCE86D7
2 changed files with 2 additions and 2 deletions

View file

@ -441,7 +441,7 @@ const ReceiveDetails = () => {
return (
<ScrollView contentContainerStyle={[styles.root, stylesHook.root]} keyboardShouldPersistTaps="always">
{wallet.isBIP47Enabled() && (
{wallet?.allowBIP47() && wallet.isBIP47Enabled() && (
<View style={styles.tabsContainer}>
<SegmentedControl
values={Object.values(segmentControlValues).map(tab => tab)}

View file

@ -1309,7 +1309,7 @@ const SendDetails = () => {
<BottomModal isVisible={optionsVisible} onClose={hideOptions}>
<KeyboardAvoidingView enabled={!isTablet} behavior={undefined}>
<View style={[styles.optionsContent, stylesHook.optionsContent]}>
{wallet?.isBIP47Enabled() && (
{wallet?.allowBIP47() && wallet.isBIP47Enabled() && (
<ListItem testID="InsertContactButton" title={loc.send.details_insert_contact} hideChevron onPress={handleInsertContact} />
)}
{isEditable && (