MCPcopy Create free account
hub / github.com/CodeWithHarry/Sigma-Web-Dev-Course / getData

Function getData

Video 131/components/PaymentPage.js:49–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47 }
48
49 const getData = async () => {
50 let u = await fetchuser(username)
51 setcurrentUser(u)
52 let dbpayments = await fetchpayments(username)
53 setPayments(dbpayments)
54 }
55
56
57 const pay = async (amount) => {

Callers 1

PaymentPage.jsFile · 0.70

Calls 2

fetchuserFunction · 0.90
fetchpaymentsFunction · 0.90

Tested by

no test coverage detected