Skip to content

Commit

Permalink
Fix storage usage condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Cosmin-Parvulescu committed Feb 28, 2024
1 parent bafe517 commit dcb0bd9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions apps/console/app/routes/apps/$clientId/storage.ostrich.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -389,11 +389,9 @@ export default () => {
!appDetails.externalAppDataPackageDefinition.autoTopUp &&
appExternalStorageUsage &&
(appExternalStorageUsage.readUsage >=
0.9 * appExternalStorageUsage.readAvailable +
appExternalStorageUsage.readTopUp ||
0.9 * appExternalStorageUsage.readAvailable ||
appExternalStorageUsage.writeUsage >=
0.9 * appExternalStorageUsage.writeAvailable +
appExternalStorageUsage.writeTopUp) && (
0.9 * appExternalStorageUsage.writeAvailable) && (
<div className="flex flex-row rounded p-4 gap-2 bg-orange-50 items-center">
<HiExclamationTriangle className="h-5 w-5 text-orange-400" />

Expand Down

0 comments on commit dcb0bd9

Please sign in to comment.