mirror of
https://github.com/neynarxyz/create-farcaster-mini-app.git
synced 2025-11-15 23:58:56 -05:00
Add isMobile check
This commit is contained in:
parent
718d365221
commit
7de86c4a15
@ -299,7 +299,7 @@ export function NeynarAuthButton() {
|
||||
if (signedKeyData.signer_approval_url) {
|
||||
setSignerApprovalUrl(signedKeyData.signer_approval_url);
|
||||
setSignersLoading(false); // Stop loading, show QR code
|
||||
if (context?.client?.clientFid === FARCASTER_FID) {
|
||||
if (isMobile() && context?.client?.clientFid === FARCASTER_FID) {
|
||||
setShowDialog(false);
|
||||
window.open(signedKeyData.signer_approval_url, '_blank');
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user