From 05c95531492b88573f41b14bd9274ca366eae01c Mon Sep 17 00:00:00 2001 From: Gregory Goijaerts Date: Sun, 25 Nov 2018 22:47:24 +0100 Subject: [PATCH 1/2] Fix invalid account Id usage (fixes #431) --- src/react/Pages/Connect/Connect.jsx | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/react/Pages/Connect/Connect.jsx b/src/react/Pages/Connect/Connect.jsx index 940ac1bd..bb044723 100644 --- a/src/react/Pages/Connect/Connect.jsx +++ b/src/react/Pages/Connect/Connect.jsx @@ -351,15 +351,13 @@ class Connect extends React.Component { } // no correct target, do nothing - if (!targetInfo) return null; - - this.props.shareInviteBankInquirySend( - this.props.user.id, - this.props.selectedAccountId, - targetInfo, - shareDetail, - shareOptions - ); + if (!targetInfo) return; + + // get the correct ID + const accountId = parseFloat(this.props.match.params.accountId); + if (!accountId) return; + + this.props.shareInviteBankInquirySend(this.props.user.id, accountId, targetInfo, shareDetail, shareOptions); } }; From 88b9792637e46df448dd3bdfb88922522a760761 Mon Sep 17 00:00:00 2001 From: Gregory Goijaerts Date: Sun, 25 Nov 2018 22:49:11 +0100 Subject: [PATCH 2/2] Update version to 0.9.3 --- bunqdesktop.nuspec | 4 ++-- chocolatey/chocolateyInstall.ps1 | 2 +- package.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bunqdesktop.nuspec b/bunqdesktop.nuspec index 49ea3472..fc6cd755 100644 --- a/bunqdesktop.nuspec +++ b/bunqdesktop.nuspec @@ -2,7 +2,7 @@ bunqdesktop - 0.9.2 + 0.9.3 bunqCommunity @@ -25,7 +25,7 @@ The unofficial, free and open source desktop application for the bunq API A desktop implementation for bunq's API. This app does everything within the application so you don't have to worry about sharing your API key with anyone else! - https://github.com/bunqCommunity/bunqDesktop/releases/tag/0.9.2 + https://github.com/bunqCommunity/bunqDesktop/releases/tag/0.9.3 diff --git a/chocolatey/chocolateyInstall.ps1 b/chocolatey/chocolateyInstall.ps1 index a49686bc..d7d04c5a 100644 --- a/chocolatey/chocolateyInstall.ps1 +++ b/chocolatey/chocolateyInstall.ps1 @@ -1,6 +1,6 @@ $name = 'bunqDesktop' $installerType = 'exe' -$url = 'https://github.com/bunqCommunity/bunqDesktop/releases/download/0.9.2/bunqDesktop-0.9.2.exe' +$url = 'https://github.com/bunqCommunity/bunqDesktop/releases/download/0.9.3/bunqDesktop-0.9.3.exe' $silentArgs = '/silent' Install-ChocolateyPackage $name $installerType $silentArgs $url diff --git a/package.json b/package.json index 953c1891..9704d715 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "description": "The unofficial, free and open source desktop application for the bunq API", "productName": "bunqDesktop", "homepage": "https://bunqdesk.top/", - "version": "0.9.2", + "version": "0.9.3", "author": { "name": "bunqCommunity", "email": "bunqcommunity@gmail.com"