From 8a0bbf5faa03c294d308a13fe210ba6aaeef6968 Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Sun, 23 Apr 2023 18:51:27 +0200 Subject: feat: introduce locale proxy (#2004) --- src/modules/location/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/modules/location') 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)); -- cgit v1.2.3