Skip to content

Commit

Permalink
[lib] address feedback from D13098
Browse files Browse the repository at this point in the history
Summary: accidentally landed D13098 without addressing a piece of feedback.

Test Plan: tested this change with rest of original stack to make sure cache worked as expected

Reviewers: ashoat

Reviewed By: ashoat

Subscribers: tomek

Differential Revision: https://phab.comm.dev/D13139
  • Loading branch information
vdhanan committed Aug 23, 2024
1 parent cbb0023 commit ec66fa6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/utils/fc-cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,11 @@ class FCCache {
}

const { farcasterUser } = cacheResult;
if (typeof farcasterUser !== 'object' || farcasterUser instanceof Promise) {
if (
typeof farcasterUser !== 'object' ||
farcasterUser instanceof Promise ||
!farcasterUser
) {
return undefined;
}

Expand Down

0 comments on commit ec66fa6

Please sign in to comment.