This commit is contained in:
Marcos Rodriguez Velez 2024-03-27 00:15:28 -04:00
parent ec35d56b11
commit 4b922d07a4
No known key found for this signature in database
GPG Key ID: 6030B2F48CCE86D7
3 changed files with 8 additions and 4 deletions

View File

@ -863,7 +863,7 @@ export class AppStorage {
if (doNotTrackValue) {
await DefaultPreference.set(AppStorage.DO_NOT_TRACK, '1');
AsyncStorage.removeItem(AppStorage.DO_NOT_TRACK);
}
}
} catch (_) {}
return false;
};

View File

@ -55,7 +55,7 @@ export const Button = forwardRef<TouchableOpacity, ButtonProps>((props, ref) =>
</View>
</TouchableOpacity>
);
};
});
const styles = StyleSheet.create({
button: {

View File

@ -38,7 +38,7 @@ const LNDCreateInvoice = () => {
const { wallets, saveToDisk, setSelectedWalletID } = useContext(BlueStorageContext);
const { walletID, uri } = useRoute().params;
const wallet = useRef(wallets.find(item => item.getID() === walletID) || wallets.find(item => item.chain === Chain.OFFCHAIN));
const createInvoiceRef = useRef()
const createInvoiceRef = useRef();
const { name } = useRoute();
const { colors } = useTheme();
const { navigate, getParent, goBack, pop, setParams } = useNavigation();
@ -318,7 +318,11 @@ const LNDCreateInvoice = () => {
const renderCreateButton = () => {
return (
<View style={styles.createButton}>
{isLoading ? <ActivityIndicator /> : <Button disabled={!(amount > 0)} ref={createInvoiceRef} onPress={createInvoice} title={loc.send.details_create} />}
{isLoading ? (
<ActivityIndicator />
) : (
<Button disabled={!(amount > 0)} ref={createInvoiceRef} onPress={createInvoice} title={loc.send.details_create} />
)}
</View>
);
};