Skip to content

Commit

Permalink
fix farcaster signer modal close issue--poll for text record changes …
Browse files Browse the repository at this point in the history
…on owned profiles
  • Loading branch information
JFrankfurt committed Sep 13, 2024
1 parent 644b09e commit 1bfba73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@ export default function FarcasterAccountModal() {
[farcasterSignerState.isLoadingSigner],
);
const handleButtonClick = useCallback(() => {
farcasterSignerState
.createSigner()
.catch(console.error)
.finally(() => setShowFarcasterQRModal(false));
farcasterSignerState.createSigner().catch(console.error);
}, [farcasterSignerState, setShowFarcasterQRModal]);

const handleModalClose = useCallback(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ function SectionContent() {
const { existingTextRecords, existingTextRecordsIsLoading } = useReadBaseEnsTextRecords({
address: profileAddress,
username: profileUsername,
refetchInterval: currentWalletIsProfileOwner ? 5000 : Infinity,
});
const homeframeUrlString = existingTextRecords[UsernameTextRecordKeys.Frame] ?? '';
const frameUrls = homeframeUrlString.split('|').filter(Boolean);
Expand Down

0 comments on commit 1bfba73

Please sign in to comment.