Skip to content

Commit 356c7da

Browse files
committed
Return null instead of NotFoundPage when tax is missing but taxes are loaded
1 parent 0983ac3 commit 356c7da

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/pages/workspace/taxes/WorkspaceEditTaxPage.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ function WorkspaceEditTaxPage({
7474
};
7575

7676
if (!currentTaxRate) {
77+
if (policy?.taxRates?.taxes) {
78+
return null;
79+
}
7780
return <NotFoundPage />;
7881
}
7982
const taxCodeToShow = isControlPolicy(policy) ? taxID : '';

0 commit comments

Comments
 (0)