Skip to content

Commit

Permalink
fix: don't display usage data if it doesn't match user's current time…
Browse files Browse the repository at this point in the history
…zone (#13961)
  • Loading branch information
josephkmh committed Sep 16, 2024
1 parent 69b33f6 commit 5cf62e0
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -223,15 +223,6 @@ function appendTimeframeUsage(

if (existingTimeChunk) {
existingTimeChunk[usageType] += timeframeUsage.quantity;
} else {
usagePerTimeChunk.push({
timeChunkLabel,
freeUsage: usageType === "freeUsage" ? timeframeUsage.quantity : 0,
billedCost: usageType === "billedCost" ? timeframeUsage.quantity : 0,
internalUsage: usageType === "internalUsage" ? timeframeUsage.quantity : 0,
startTime: timeframeUsage.timeframeStart,
endTime: timeframeUsage.timeframeEnd,
});
}
}

Expand Down

0 comments on commit 5cf62e0

Please sign in to comment.