Skip to content

Commit

Permalink
[FIX] 기존의 값과 다르다면 업데이트
Browse files Browse the repository at this point in the history
  • Loading branch information
wlwpfh committed Nov 24, 2024
1 parent 8b3efbc commit ba9f91d
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ public class AccountInfo {
private boolean forPayCode;

public AccountInfo updateInfo(String name, String bank, String account, String kakaoPayCode) {
if(nonNull(account) && !this.account.equals(account)) {
this.forPayCode = false;
}
if(nonNull(kakaoPayCode) && !this.kakaoPayCode.equals(kakaoPayCode)) {
this.forPayCode = true;
}
if (nonNull(name)) {
this.name = name;
}
Expand Down

0 comments on commit ba9f91d

Please sign in to comment.