Lightning-Bounties / lb-next

0 stars 3 forks source link

Pass API Err Msgs to Notifications Widget #8

Open sutt opened 4 hours ago

sutt commented 4 hours ago

The top right notification bar currently only displays "Error" when receiving an err on XHR.

Add the detail.message returned in the HTTP 400+ response json. Or "Error" if no message.

For example on a withdrawal that takes more sats than

{"detail":{"error_code":12005,"message":"Insufficient funds."}}

But the frontend only displays "Error" as seen below.

image

TODO

aliraza556 commented 4 hours ago

@sutt, Please assign me?