Skip to content

Commit

Permalink
[lib] fix useFCNames
Browse files Browse the repository at this point in the history
Summary: resolves https://linear.app/comm/issue/ENG-9337/fix-broken-usefcnames

Test Plan:
https://gist.github.com/vdhanan/9b6a003fb731f7e23fac54e8d594fdef

with patch, i was able to see my farcaster username logged

Reviewers: ashoat, will

Reviewed By: ashoat

Subscribers: tomek

Differential Revision: https://phab.comm.dev/D13387
  • Loading branch information
vdhanan committed Sep 18, 2024
1 parent 3696bdb commit a78a969
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hooks/fc-cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function useFCNames<T: ?BaseFCInfo>(
if (farcasterUsername) {
cachedResult = farcasterUsername;
} else if (fid && fcCache) {
cachedResult = fcCache.getCachedFarcasterUserForFID(fid);
cachedResult = fcCache.getCachedFarcasterUserForFID(fid)?.username;
}
return {
input: user,
Expand Down

0 comments on commit a78a969

Please sign in to comment.