Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ protected void initialize() {
departure.setText(aeroportDepart.getIataCode() + " " + vol.getHeureDepart());
arrival.setText(aeroportArrive.getIataCode() + " " + vol.getHeureArrive());

reservationPrice = 0.0;

// TODO : This could be optimised by porting the logic to the backend
for (ReservationDTO.PassagerData passagerData : PreferencesController.getChosenPassagers()) {
PassagerDTO passagerDTO = ClientCache.get(passagerData.getPassagerId(), PassagerDTO.class);
Expand Down
2 changes: 1 addition & 1 deletion client/src/main/java/skybooker/client/requests/Client.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import okhttp3.*;

public class Client {
private static final String url = "http://localhost:8080/api/v1";
private static final String url = "http://192.168.11.101:8080/api/v1";
private static final OkHttpClient client = new OkHttpClient();
private static String token = "";
private static boolean loggedIn = false;
Expand Down