bunqCommunity / bunqDesktop

The unofficial, free and open source desktop application for the bunq API
https://bunqdesk.top
MIT License
272 stars 53 forks source link

fix: Cannot read property 'amount_inquired' of null #585 #586

Open sKiLdUsT opened 3 years ago

sKiLdUsT commented 3 years ago
sKiLdUsT commented 3 years ago

After some investigation, issue #585 only occurs if there is a cancelled shared payment request (bunq receipt splitter feature from update 15) present somewhere in the dataset. Since bunqMeTab.bunqme_tab_entry doesn't get populated in this case, my workaround first creates the necessary variables with null values and only fills them with the actual request data if present. There might be a more elegant way to do this, but this at least get's the app working again.