Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

149
Views
ƒ recepitantSnapshot() { return _ref2.apply(this, arguments); } in react js

I want to compare user email and database user email and tried to fetch name and profile based on comparparion but i get

**ƒ recepitantSnapshot() {
      return _ref2.apply(this, arguments);
    }** 

on log.What I have done wrong and how i can fix this.THanks in advance

Here is my code

import {useCollection} from "react-firebase-hooks/firestore";
import { db, storage } from "../../firebases";
import {useRouter}  from 'next/router';
const Chats=({id,users,session})=>{
    // const recepiantEmail=GetRecepitentEmail(users,session.user.email);
    const recepitantSnapshot= async ()=> await useCollection(db.collection('users').where('email','===',users));
console.log(recepitantSnapshot)
    // const recepiant= recepitantSnapshot?.docs?.[0]?.data();
    const router = useRouter();
    const enterChat=()=>{
        // router.push(`/chat/${id}`);
    }
    return(
        <>
        <div className=" flex items-center cursor-pointer p-2">
            <div className="m-1 mr-2 w-3"onClick={enterChat}>
                <img src={recepitantSnapshot.profile}></img>
                
            </div>
            <p>{recepitantSnapshot.name}</p>
        </div>
        </>
        )
}
export default Chats;
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!