Skip to content

Commit

Permalink
fix: uses reference number from subsector instead
Browse files Browse the repository at this point in the history
  • Loading branch information
cephaschapa committed Feb 18, 2025
1 parent 2f1f8fb commit bb4eda6
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,11 +192,9 @@ function SubSectorPage({
`${searchParams.get("refNo")}.1`,
);

// console.log(getSectorRefNo(step));

useEffect(() => {
if (scopes.length > 0 && !loadingState) {
setReferenceNumber(scopes[0]?.referenceNumber);
if (scopes.length > 0 && !loadingState && subSectorData) {
setReferenceNumber(subSectorData.referenceNumber!);
}
}, [scopes, loadingState]);

Expand Down

0 comments on commit bb4eda6

Please sign in to comment.