Fixed logic in if statement
Merge branch 'core-pr-4' of github.com:ding2tal/ding_loan into core-pr-4