Skip to content

Commit

Permalink
react: add stale flag to useFavoriteDomain
Browse files Browse the repository at this point in the history
  • Loading branch information
dr497 committed Dec 20, 2023
1 parent 875e448 commit 71aaf40
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions react/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bonfida/sns-react",
"version": "2.0.3",
"version": "2.1.0",
"description": "A set of React hooks to interact with the Solana Name Service",
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
Expand Down Expand Up @@ -51,7 +51,7 @@
"typescript": "^5.3.2"
},
"dependencies": {
"@bonfida/spl-name-service": "2.0.4",
"@bonfida/spl-name-service": "2.1.0",
"@solana/web3.js": "^1.87.6",
"react-async-hook": "^4.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion react/src/hooks/useFavoriteDomain/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const useFavoriteDomain = (
if (!key) return;
try {
const res = await getFavoriteDomain(connection, key);
return { pubkey: res.domain, domain: res.reverse };
return { pubkey: res.domain, domain: res.reverse, stale: res.stale };
} catch (err) {
console.log(err);
return undefined;
Expand Down

0 comments on commit 71aaf40

Please sign in to comment.