Skip to content

Commit

Permalink
fix(univ): display billing address even without address
Browse files Browse the repository at this point in the history
  • Loading branch information
alleytuna committed Jan 22, 2024
1 parent c059487 commit e782b51
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const Bill = () => {
const { universityId } = response.data.convention;
if (universityId) {
agent.University.getOne(universityId).then(university => {
if (university && (university.address || university.postal_code || university.city)) {
if (university && (university.address || university.postal_code || university.city || university.billingAddress)) {
setUniversityInfos({
name: university.name,
address: [university.address || '', university.postal_code || '', university.city || '']
Expand Down

0 comments on commit e782b51

Please sign in to comment.