Skip to content

Commit

Permalink
Merge pull request #104 from flickmatch/Astitva-bug
Browse files Browse the repository at this point in the history
Fixed bug
  • Loading branch information
hvs-flick authored Oct 21, 2023
2 parents d559efa + 2aacdc0 commit ef0e00d
Showing 1 changed file with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,14 +164,17 @@ private Event.EventDetails buildEventDetails(CreateEventInput input, int index)
.build();
return eventDetails;
}

private static final Map<String, String> cityToCurrencyMap = new HashMap<>();
static {
cityToCurrencyMap.put("1", "INR");
cityToCurrencyMap.put("2", "INR");
cityToCurrencyMap.put("3", "USD");
cityToCurrencyMap.put("4", "USD");
cityToCurrencyMap.put("5", "USD");
}
public String getCurrencyForCity(String cityId) {
final Map<String, String> cityToCurrencyMap = new HashMap<>();
cityToCurrencyMap.put("1", "INR");
cityToCurrencyMap.put("2", "INR");
cityToCurrencyMap.put("3", "USD");
cityToCurrencyMap.put("4", "USD");
cityToCurrencyMap.put("5", "USD");
return cityToCurrencyMap.getOrDefault(cityId, "DEFAULT_CURRENCY_CODE");
return cityToCurrencyMap.getOrDefault(cityId, "IN");
}

private String getPaymentUrlForEvent(SportsVenue sportsVenue, Double amount) {
Expand Down

0 comments on commit ef0e00d

Please sign in to comment.