We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0db3abe commit 49123aaCopy full SHA for 49123aa
src/main/java/com/bunq/sdk/context/UserContext.java
@@ -39,17 +39,16 @@ private void initUser(BunqModel user) {
39
}
40
41
public void initMainMonetaryAccount(UserContextHelper helper) {
42
+ if (this.userPaymentServiceProvider != null) {
43
+ return;
44
+ }
45
+
46
this.primaryMonetaryAccountBank = helper.getFirstActiveMonetaryAccountBankByUserId(getUserId());
47
48
49
public void refreshContext() {
50
UserContextHelper helper = new UserContextHelper(this.apiContext);
51
this.initUser(helper.getFirstUser().getReferencedObject());
-
- if (this.userPaymentServiceProvider != null) {
- return;
- }
52
53
this.initMainMonetaryAccount(helper);
54
55
0 commit comments