Skip to content

Commit

Permalink
cambie precios
Browse files Browse the repository at this point in the history
  • Loading branch information
tomyluquez committed Jun 6, 2024
1 parent ab52c44 commit d4d7c03
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/services/location.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ export class LocationService {
async getLocation(region: string, country_code: string) {
this.userLocation = region;
const country: string = country_code.toUpperCase();
this.userCurrency = currency['OTHERS'];
this.userCurrency = currency[country]
? currency[country]
: currency['OTHERS'];
}
}

0 comments on commit d4d7c03

Please sign in to comment.