morkeltry / GAP-microfinance

GAP microfinance frontend and Solidity prototype
0 stars 1 forks source link

Loans flow - route branching logic #13

Open morkeltry opened 6 years ago

morkeltry commented 6 years ago

Route to one of the 3 possible loans pages: repayments, eligibility and apply. Note this is a change from yesterday's flow diagram.

Create dummy functions hasActiveLoan() and hasLoanOffer() and mock these functions so that they return (for testing purposes)

Make 2 async calls to the functions and await results.

if `hasActiveLoan (ethAddr) 
\\ route to repayments
else if hasLoanOffer (ethAddr)
\\ route to apply
else
\\ route to eligibility

Show attractive loading screen while waiting for results (eg GAP graphic from upwork)

jignasheth407 commented 6 years ago

Done