Skip to content

Commit

Permalink
http exception used in frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
RChandler234 committed Nov 24, 2023
1 parent 5b53e4d commit e72781d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ const CreateWorkPackageForm: React.FC = () => {
const wbsNum = query.get('wbs');
const history = useHistory();

if (!wbsNum) throw new HttpException(400, 'WBS number not included in request.');
if (!crId) throw new HttpException(400, 'CR ID not included in request.');
if (!wbsNum) throw new Error('WBS number not included in request.');
if (!crId) throw new Error('CR ID not included in request.');

const { mutateAsync } = useCreateSingleWorkPackage();

Expand Down

0 comments on commit e72781d

Please sign in to comment.