mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-22 06:52:41 +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 getClipboardContent = async () => {
|
||||||
const isAllowed = await isReadClipboardAllowed();
|
const isAllowed = await isReadClipboardAllowed();
|
||||||
if (isAllowed) {
|
const hasString = (await Clipboard.hasString()) || false;
|
||||||
|
if (isAllowed && hasString) {
|
||||||
return Clipboard.getString();
|
return Clipboard.getString();
|
||||||
} else {
|
} else {
|
||||||
return '';
|
return '';
|
||||||
|
|
Loading…
Add table
Reference in a new issue