mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-03-03 20:07:11 +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 => {
|
||||
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(() => {
|
||||
RNFS.unlink(filePath);
|
||||
|
|
|
@ -131,7 +131,7 @@ ToolTipMenu.propTypes = {
|
|||
onPressMenuItem: PropTypes.func.isRequired,
|
||||
isMenuPrimaryAction: PropTypes.bool,
|
||||
isButton: PropTypes.bool,
|
||||
renderPreview: PropTypes.element,
|
||||
renderPreview: PropTypes.func,
|
||||
onPress: PropTypes.func,
|
||||
previewValue: PropTypes.string,
|
||||
disabled: PropTypes.bool,
|
||||
|
|
|
@ -227,7 +227,7 @@ export const WalletCarouselItem = ({ item, _, onPress, handleLongPress, isSelect
|
|||
<Text
|
||||
numberOfLines={1}
|
||||
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 }]}
|
||||
>
|
||||
{`${balance} `}
|
||||
|
|
Loading…
Add table
Reference in a new issue