diff options
| author | ST-DDT <[email protected]> | 2023-04-23 18:51:27 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-04-23 18:51:27 +0200 |
| commit | 8a0bbf5faa03c294d308a13fe210ba6aaeef6968 (patch) | |
| tree | c3fc64e877992b09b0c7699201b103aac1b06071 /src/modules/location | |
| parent | 2675ec20fe28ebf89fc8b5b939c9ae7fbde7559f (diff) | |
| download | faker-8a0bbf5faa03c294d308a13fe210ba6aaeef6968.tar.xz faker-8a0bbf5faa03c294d308a13fe210ba6aaeef6968.zip | |
feat: introduce locale proxy (#2004)
Diffstat (limited to 'src/modules/location')
| -rw-r--r-- | src/modules/location/index.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/location/index.ts b/src/modules/location/index.ts index c39711b7..26ead8ad 100644 --- a/src/modules/location/index.ts +++ b/src/modules/location/index.ts @@ -73,8 +73,7 @@ export class LocationModule { const { state } = options; if (state) { - const zipRange = - this.faker.definitions.location.postcode_by_state?.[state]; + const zipRange = this.faker.definitions.location.postcode_by_state[state]; if (zipRange) { return String(this.faker.number.int(zipRange)); |
