diff --git a/src/main/java/com/sopterm/makeawish/domain/user/AccountInfo.java b/src/main/java/com/sopterm/makeawish/domain/user/AccountInfo.java index 572c840..fda75ec 100644 --- a/src/main/java/com/sopterm/makeawish/domain/user/AccountInfo.java +++ b/src/main/java/com/sopterm/makeawish/domain/user/AccountInfo.java @@ -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; }