ArboreumDev / credit-union-frontend

Frontend in Next.js + Typescript + GraphQL
https://frontend-two-sandy.vercel.app
1 stars 0 forks source link

BUG: updating a too high pledge request is not working #136

Closed djudjuu closed 3 years ago

djudjuu commented 3 years ago

when a pledge request is too high

djudjuu commented 3 years ago

@gparuthi let's also fix this for the neufund demo

gparuthi commented 3 years ago

Trying with scenario:


{
    "users": [
        {
            "name": "a b",
            "email": "amitabh",
            "user_type": "borrower",
            "demographic_info": {
                "income": 300,
                "credit_score": 600,
                "education_years": 3
            }
        },
        {
            "name": "d p",
            "email": "deepika",
            "user_type": "lender",
            "demographic_info": {
                "income": 300,
                "credit_score": 600,
                "education_years": 3
            }
        },
        {
            "name": "s k",
            "email": "salman",
            "user_type": "lender",
            "demographic_info": {}
        }
    ],
    "actions": [
        {
            "id": 32,
            "action_type": "ADJUST_BALANCES",
            "payload": {
                "userEmail": "deepika",
                "balanceDelta": "20000"
            }
        },
        {
            "id": 33,
            "action_type": "ADJUST_BALANCES",
            "payload": {
                "userEmail": "salman",
                "balanceDelta": "1000"
            }
        },
        {
            "id": 34,
            "action_type": "ADJUST_BALANCES",
            "payload": {
                "userEmail": "salman",
                "balanceDelta": "20000"
            }
        }
    ]
}```