diff --git a/webserver/server/app/controllers/ProjectedNftRangeController.ts b/webserver/server/app/controllers/ProjectedNftRangeController.ts index e45c5084..9aca0270 100644 --- a/webserver/server/app/controllers/ProjectedNftRangeController.ts +++ b/webserver/server/app/controllers/ProjectedNftRangeController.ts @@ -37,7 +37,7 @@ export class ProjectedNftRangeController extends Controller { ); } - if (requestBody.address !== null) { + if (requestBody.address !== undefined) { return await this.handle_by_address_query(requestBody.address, requestBody); } else { return await this.handle_general_query(requestBody); diff --git a/webserver/shared/models/ProjectedNftRange.ts b/webserver/shared/models/ProjectedNftRange.ts index 302d8a6f..efc87ac5 100644 --- a/webserver/shared/models/ProjectedNftRange.ts +++ b/webserver/shared/models/ProjectedNftRange.ts @@ -16,7 +16,7 @@ export type ProjectedNftRangeRequest = { */ maxSlot: number }, - address: string | null + address: string | undefined }; export type ProjectedNftRangeResponse = {