diff options
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)); |
