Skip to content

Commit

Permalink
[wip]: Return empty string if fetched account is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
lorisleiva committed Jan 20, 2025
1 parent 0fc085b commit a7c9171
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions clients/js/src/packData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,9 @@ export async function unpackAndFetchExternalData(
if (externalData.length !== undefined) {
data = data.slice(0, externalData.length);
}
if (data.length === 0) {
return '';
}
return pipe(
data,
(d) => uncompressData(d, input.compression),
Expand Down

0 comments on commit a7c9171

Please sign in to comment.