From c5b9f6993215039afde0d6220ec615cbd2ceb804 Mon Sep 17 00:00:00 2001 From: Eugene Gostkin Date: Tue, 19 Dec 2023 01:26:32 +0100 Subject: [PATCH] Make address undefined --- webserver/server/app/controllers/ProjectedNftRangeController.ts | 2 +- webserver/shared/models/ProjectedNftRange.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 = {