Skip to content

Commit

Permalink
23332 - Fix request restoration nr for limited restored company (#787)
Browse files Browse the repository at this point in the history
* fix: allow historical businesses to request restoration NR
  • Loading branch information
AimeeGao authored Dec 23, 2024
1 parent f383d77 commit faac449
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "name-request",
"version": "5.5.15",
"version": "5.5.16",
"private": true,
"appName": "Name Request UI",
"sbcName": "SBC Common Components",
Expand Down
3 changes: 2 additions & 1 deletion app/src/store/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import querystring from 'qs'
import axios from 'axios'
import {
CompanyTypes,
EntityStates,
EntityTypes,
Location,
NameCheckAnalysisJurisdiction,
Expand Down Expand Up @@ -307,7 +308,7 @@ export async function searchBusiness ({ getters }, corpNum: string): Promise<Bus
// first try to find business in Entities (Legal API)
const data = await NamexServices.searchEntities(corpNum)
// for restoration requests, verify business eligibility
if (getters.isRestoration) {
if (getters.isRestoration && data.state !== EntityStates.HISTORICAL) {
// check if business is eligible for restoration by verifying restorationExpiryDate exists and not expired
if (!data.restorationExpiryDate ||
getters.getCurrentJsDate.toISOString().slice(0, 10) > data.restorationExpiryDate) {
Expand Down

0 comments on commit faac449

Please sign in to comment.