If user signs out the saved distances get deleted

random_destinations_fix
Selim Eser 2024-06-09 21:54:50 +02:00
parent e2923ae838
commit 4fbcfb4bf5
1 changed files with 3 additions and 1 deletions

View File

@ -55,7 +55,9 @@ public class System {
return true;
}
public void sign_out_user(){}
public void sign_out_user(){
this.distances = new ArrayList<>();
}
public boolean change_user_details(String username, String password, String hometown, int zip,
String car_name, double car_co2_km, double car_avg_kmh, double bike_avg_kmh){