mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-03-04 04:13:49 +01:00
FIX: Warnings
This commit is contained in:
parent
6b7887d3d7
commit
1856e79eaf
3 changed files with 6 additions and 3 deletions
|
@ -20,7 +20,10 @@ const _shareOpen = async (filePath: string, showShareDialog: boolean = false) =>
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
presentAlert({ message: error.message });
|
// If user cancels sharing, we dont want to show an error. for some reason we get 'CANCELLED' string as error
|
||||||
|
if (error.message !== 'CANCELLED') {
|
||||||
|
presentAlert({ message: error.message });
|
||||||
|
}
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
RNFS.unlink(filePath);
|
RNFS.unlink(filePath);
|
||||||
|
|
|
@ -131,7 +131,7 @@ ToolTipMenu.propTypes = {
|
||||||
onPressMenuItem: PropTypes.func.isRequired,
|
onPressMenuItem: PropTypes.func.isRequired,
|
||||||
isMenuPrimaryAction: PropTypes.bool,
|
isMenuPrimaryAction: PropTypes.bool,
|
||||||
isButton: PropTypes.bool,
|
isButton: PropTypes.bool,
|
||||||
renderPreview: PropTypes.element,
|
renderPreview: PropTypes.func,
|
||||||
onPress: PropTypes.func,
|
onPress: PropTypes.func,
|
||||||
previewValue: PropTypes.string,
|
previewValue: PropTypes.string,
|
||||||
disabled: PropTypes.bool,
|
disabled: PropTypes.bool,
|
||||||
|
|
|
@ -227,7 +227,7 @@ export const WalletCarouselItem = ({ item, _, onPress, handleLongPress, isSelect
|
||||||
<Text
|
<Text
|
||||||
numberOfLines={1}
|
numberOfLines={1}
|
||||||
key={balance} // force component recreation on balance change. To fix right-to-left languages, like Farsi
|
key={balance} // force component recreation on balance change. To fix right-to-left languages, like Farsi
|
||||||
ellipsizeMode='middle'
|
ellipsizeMode="middle"
|
||||||
style={[iStyles.balance, { color: colors.inverseForegroundColor }]}
|
style={[iStyles.balance, { color: colors.inverseForegroundColor }]}
|
||||||
>
|
>
|
||||||
{`${balance} `}
|
{`${balance} `}
|
||||||
|
|
Loading…
Add table
Reference in a new issue