@paro.io/expert-shared-components 1.9.8 → 1.9.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -204,7 +204,12 @@ const RightCardUI = ({ project, expertName, freelancerId, freelancerEmail, isAut
204
204
  clientPortal && react_1.default.createElement(react_1.default.Fragment, null,
205
205
  react_1.default.createElement("h1", { className: "text-[#64748B] text-md font-bold" }, "Actions"),
206
206
  react_1.default.createElement(base_ui_1.Button, { label: signedSow ? "DOWNLOAD SOW" : "SIGN SOW", size: "sm", disabled: !sowId, className: "w-full", onClick: () => {
207
- signedSow ? downloadSow(project === null || project === void 0 ? void 0 : project.scopeOfWorkId) : window.open(`/contract/${project === null || project === void 0 ? void 0 : project.contractId}`, '_blank');
207
+ if (signedSow) {
208
+ downloadSow(project === null || project === void 0 ? void 0 : project.scopeOfWorkId);
209
+ }
210
+ else {
211
+ window.open(`/contract/${project === null || project === void 0 ? void 0 : project.contractId}`, '_blank');
212
+ }
208
213
  }, isLoading: sowLoading }),
209
214
  signedSow &&
210
215
  react_1.default.createElement(base_ui_1.Button, { label: "SUBMIT REVIEW", size: "sm", className: "w-full", onClick: () => setOpenReviewModal(true) })),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paro.io/expert-shared-components",
3
- "version": "1.9.8",
3
+ "version": "1.9.9",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {