Skip to content

Commit

Permalink
Fix value could be undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
Gared committed Jun 23, 2024
1 parent 3fa1ea2 commit 0851e95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/instances.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const Instances = () => {

if (!filteredInstances) return <LoadingSpinner/>

const dbFailures = instance?.scan.db_reads_failed + instance?.scan.db_writes_failed
const dbFailures = (instance?.scan.db_reads_failed || 0) + (instance?.scan.db_writes_failed || 0)

return (
<div className="m-5 flex flex-col h-screen"><h1 className="text-4xl font-bold mb-5">Scanned instances</h1>
Expand Down

0 comments on commit 0851e95

Please sign in to comment.