Skip to content

Commit

Permalink
Update farcaster-humanizer (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
zingerj authored Oct 15, 2024
1 parent 64e860d commit 42a5039
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@t3-oss/env-nextjs": "^0.11.1",
"@types/qrcode-terminal": "^0.12.2",
"dotenv": "^16.4.5",
"farcaster-humanizer": "^1.0.6",
"farcaster-humanizer": "^1.0.7",
"frog": "latest",
"hono": "latest",
"lucide-react": "^0.447.0",
Expand Down
7 changes: 5 additions & 2 deletions verifications/worldcoin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { VerificationFunction, VerificationResult } from ".";

export const isWorldcoinVerified: VerificationFunction = async (fid: number): Promise<VerificationResult> => {
try {
const { isVerified } = useVerified({});
const { isVerified } = useVerified();
const verified = await isVerified(fid);

if (verified) {
Expand All @@ -13,6 +13,9 @@ export const isWorldcoinVerified: VerificationFunction = async (fid: number): Pr
return { success: false, message: "User is not verified with Worldcoin" };
} catch (error) {
console.error("Error checking Worldcoin verification:", error);
return { success: false, message: "Error checking Worldcoin verification status" };
return {
success: false,
message: "Error checking Worldcoin verification status",
};
}
};
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2069,7 +2069,7 @@ __metadata:
"@types/react": "npm:^18"
"@types/react-dom": "npm:^18"
dotenv: "npm:^16.4.5"
farcaster-humanizer: "npm:^1.0.6"
farcaster-humanizer: "npm:^1.0.7"
frog: "npm:latest"
hono: "npm:latest"
lucide-react: "npm:^0.447.0"
Expand Down Expand Up @@ -3025,12 +3025,12 @@ __metadata:
languageName: node
linkType: hard

"farcaster-humanizer@npm:^1.0.6":
version: 1.0.6
resolution: "farcaster-humanizer@npm:1.0.6"
"farcaster-humanizer@npm:^1.0.7":
version: 1.0.7
resolution: "farcaster-humanizer@npm:1.0.7"
dependencies:
viem: "npm:^2.21.1"
checksum: 10c0/45ccd89b763ccc8fa08fc232ce9db29286ffce059565ede2165a5c066fe74a84216f68e53b31a0d994b5d693ad2b1771decf190223fbe9928d45d8234911fb40
checksum: 10c0/cece146fb5e3ae62d15e396aef097dea0dc4d62aa053146c4736e62d987a1a4ce982bcbe41582d3d9c5dad37e5d7732358c9e3be572666c84fa5e623e451aff3
languageName: node
linkType: hard

Expand Down

0 comments on commit 42a5039

Please sign in to comment.