This commit is contained in:
2023-10-20 15:15:30 +07:00
parent 7c8d8a09fd
commit de88ca51fe
8 changed files with 30 additions and 36 deletions

View File

@@ -84,7 +84,9 @@ export function NoteZap({ id, pubkey }: { id: string; pubkey: string }) {
if (uri) setWalletConnectURL(uri);
}
getWalletConnectURL();
if (isOpen) {
getWalletConnectURL();
}
return () => {
setAmount('21');
@@ -92,7 +94,7 @@ export function NoteZap({ id, pubkey }: { id: string; pubkey: string }) {
setIsCompleted(false);
setIsLoading(false);
};
}, []);
}, [isOpen]);
return (
<Dialog.Root open={isOpen} onOpenChange={setIsOpen}>