Lightning-Bounties / lb-next

3 stars 8 forks source link

Pass API Err Msgs to Notifications Widget #8

Closed sutt closed 1 month ago

sutt commented 1 month 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 1 month ago

@sutt, Please assign me?