Skip to content

Commit

Permalink
fix: last appeal round
Browse files Browse the repository at this point in the history
  • Loading branch information
nhestrompia committed Aug 25, 2023
1 parent 7f3981b commit 509a3ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/pages/Cases/CaseDetails/Tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const Tabs: React.FC = () => {
useEffect(() => {
TABS[3].disabled =
(parseInt(currentPeriodIndex) < 3 && rounds.length === 1) ||
(!isUndefined(appealCost) && isLastRound(appealCost));
(!isUndefined(appealCost) && isLastRound(appealCost) && parseInt(currentPeriodIndex) === 3);
}, [currentPeriodIndex, id, currentTab, rounds.length, appealCost]);

return (
Expand Down

0 comments on commit 509a3ea

Please sign in to comment.