fix users
@@ -289,6 +289,7 @@ impl UserConfig {
self.home_address_country_code = "US".to_string();
}
+ if !self.home_address_formatted.is_empty() {
// Create the geocode client.
let geocode = Geocode::new_from_env();
// Get the latitude and longitude.
@@ -297,6 +298,7 @@ impl UserConfig {
self.home_address_latitude = location.lat as f32;
self.home_address_longitude = location.lng as f32;
}
+ }
async fn populate_work_address(&mut self, db: &Database) {
// Populate the address based on the user's location.
