Skip to content

Commit

Permalink
fix: Ignore domain if it is null (#455)
Browse files Browse the repository at this point in the history
* fix: Ignore domain if it is null

* fix test
  • Loading branch information
ChaituVR authored Oct 10, 2024
1 parent 3a9f4ae commit 4e6b1fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/helpers/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export async function getSpace(id: string, includeDeleted = false, network = DEF

return {
...jsonParse(spaces[0].settings, {}),
domain: spaces[0].domain,
domain: spaces[0].domain || undefined,
deleted: spaces[0].deleted === 1,
verified: spaces[0].verified === 1,
flagged: spaces[0].flagged === 1,
Expand Down
4 changes: 2 additions & 2 deletions test/integration/helpers/actions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe('helpers/actions', () => {
verified: true,
flagged: false,
deleted: false,
domain: null,
domain: undefined,
hibernated: false,
turbo: false,
name: 'Test Space',
Expand All @@ -28,7 +28,7 @@ describe('helpers/actions', () => {
verified: false,
flagged: false,
deleted: true,
domain: null,
domain: undefined,
hibernated: false,
turbo: false,
admins: ['0x87D68ecFBcF53c857ABf494728Cf3DE1016b27B0'],
Expand Down

0 comments on commit 4e6b1fb

Please sign in to comment.