Skip to content

Commit

Permalink
fix: set limit to zero when no limit is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanl17 committed Jan 29, 2025
1 parent 5688d4d commit 59e9009
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,8 @@ export function createRequestAction(onReleaseLimitReached: (limit: number) => vo
})
} catch (e) {
if (isReleaseLimitError(e)) {
onReleaseLimitReached(e.details.limit)
// free accounts do not return limit, 0 is implied
onReleaseLimitReached(e.details.limit || 0)
}

throw e
Expand Down

0 comments on commit 59e9009

Please sign in to comment.