Skip to content

Commit

Permalink
undefined fix
Browse files Browse the repository at this point in the history
  • Loading branch information
priyanshuverma-dev committed Oct 25, 2024
1 parent ec0b7cd commit e2f6943
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/(app)/dashboard/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const Page = () => {
const encryptionModal = useChangeEncryptionKeyModal();
const { data: session, status } = useSession();
useEffect(() => {
if (user.hasEncryptionKey && !hasEncryptionKey) {
if (user?.hasEncryptionKey && !hasEncryptionKey) {
encryptionModal.onOpen();
}
}, [hasEncryptionKey]);
Expand Down

0 comments on commit e2f6943

Please sign in to comment.