From 62c73b588517d91d200640d1afe306145495443c Mon Sep 17 00:00:00 2001 From: Joshua Seigler Date: Tue, 7 May 2019 09:17:42 -0400 Subject: [PATCH] Fix level calculation --- src/components/VaultHunter/index.js | 2 +- src/components/VaultHunter/investmentValidator.js | 2 +- src/components/VaultHunter/selectors.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/VaultHunter/index.js b/src/components/VaultHunter/index.js index e4b17dc..459d3a2 100644 --- a/src/components/VaultHunter/index.js +++ b/src/components/VaultHunter/index.js @@ -83,7 +83,7 @@ export default class VaultHunter extends Component { ); }); - const level = getLevel(this.state) + 2; + const level = getLevel(this.state); return (
diff --git a/src/components/VaultHunter/investmentValidator.js b/src/components/VaultHunter/investmentValidator.js index 6d43107..edfb833 100644 --- a/src/components/VaultHunter/investmentValidator.js +++ b/src/components/VaultHunter/investmentValidator.js @@ -19,6 +19,6 @@ export default function investmentValidator (skills) { totalSpent += treeTotal; treeIndex += 1; }; - if (totalSpent > (50 - 2) + 11 + 11) { return false; } + if (totalSpent > (50 - 3) + 11 + 11) { return false; } return treeTotals; } diff --git a/src/components/VaultHunter/selectors.js b/src/components/VaultHunter/selectors.js index b2dd245..4392023 100644 --- a/src/components/VaultHunter/selectors.js +++ b/src/components/VaultHunter/selectors.js @@ -1,3 +1,3 @@ export function getLevel (state) { - return state.invested.reduce((total, current) => total + current, 0); + return state.invested.reduce((total, current) => total + current, 3); };