mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-21 14:34:55 +01:00
FIX: Check if theres a string before triggering the clipboard alert
This commit is contained in:
parent
7fb3fff028
commit
431771d1b1
1 changed files with 2 additions and 1 deletions
|
@ -25,7 +25,8 @@ const BlueClipboard = () => {
|
|||
|
||||
const getClipboardContent = async () => {
|
||||
const isAllowed = await isReadClipboardAllowed();
|
||||
if (isAllowed) {
|
||||
const hasString = (await Clipboard.hasString()) || false;
|
||||
if (isAllowed && hasString) {
|
||||
return Clipboard.getString();
|
||||
} else {
|
||||
return '';
|
||||
|
|
Loading…
Add table
Reference in a new issue