Skip to content

Commit 49123aa

Browse files
committed
feature/sdk_java#134 Small fix.
1 parent 0db3abe commit 49123aa

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/main/java/com/bunq/sdk/context/UserContext.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,16 @@ private void initUser(BunqModel user) {
3939
}
4040

4141
public void initMainMonetaryAccount(UserContextHelper helper) {
42+
if (this.userPaymentServiceProvider != null) {
43+
return;
44+
}
45+
4246
this.primaryMonetaryAccountBank = helper.getFirstActiveMonetaryAccountBankByUserId(getUserId());
4347
}
4448

4549
public void refreshContext() {
4650
UserContextHelper helper = new UserContextHelper(this.apiContext);
4751
this.initUser(helper.getFirstUser().getReferencedObject());
48-
49-
if (this.userPaymentServiceProvider != null) {
50-
return;
51-
}
52-
5352
this.initMainMonetaryAccount(helper);
5453
}
5554

0 commit comments

Comments
 (0)