Skip to content

Commit

Permalink
remove undefined fallbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
truemiller committed May 29, 2024
1 parent bf669d0 commit 04dfae4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/components/Main/MainNeedsFunds.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,10 @@ const useNeedsFunds = () => {
const hasEnoughOlasForInitialFunding = useMemo(() => {
const olasInSafe = safeBalance?.OLAS || 0;
const olasStakedBySafe = totalOlasStakedBalance || 0;

const olasInSafeAndStaked = olasInSafe + olasStakedBySafe;

return olasInSafeAndStaked >= (serviceFundRequirements.olas || 0);
return olasInSafeAndStaked >= serviceFundRequirements.olas;
}, [
safeBalance?.OLAS,
totalOlasStakedBalance,
Expand Down

0 comments on commit 04dfae4

Please sign in to comment.