Skip to content

Commit

Permalink
Merge pull request #185 from fermyon/fix-183
Browse files Browse the repository at this point in the history
let auto_domain = app subdomain
  • Loading branch information
bacongobbler committed Mar 19, 2024
2 parents 87ea675 + 49a2b21 commit 85b2d95
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/commands/apps.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,16 +104,16 @@ impl InfoCommand {
}

fn domains_current_and_in_progress(app: &AppItem) -> (Option<&String>, Option<&String>) {
let auto_domain = app.channels[0].domain.as_ref();
let auto_domain = &app.subdomain;
match &app.domain {
Some(val) => match val.validation_status {
ValidationStatus::InProgress | ValidationStatus::Provisioning => {
(auto_domain, Some(&val.name))
(Some(auto_domain), Some(&val.name))
}
ValidationStatus::Ready => (Some(&val.name), None),
ValidationStatus::Error => (auto_domain, None),
ValidationStatus::Error => (Some(auto_domain), None),
},
None => (auto_domain, None),
None => (Some(auto_domain), None),
}
}

Expand Down

0 comments on commit 85b2d95

Please sign in to comment.