Skip to content

Commit 14944ba

Browse files
authored
Merge pull request #1094 from rintumerin-aot/feature/FWF-5883-add-trial-expiry-notification
FWF-5883 [FEATURE] - Check for expiry date not a number added
2 parents a2c0929 + 55b0a9c commit 14944ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

forms-flow-nav/src/sidenav/ProfileSettingsModal.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const ProfileSettingsModal = ({ show, onClose, tenant, publish }) => {
3232
? JSON.parse(tenantDataStr)?.expiry_dt
3333
: tenant?.tenantData?.expiry_dt;
3434

35-
if (expiry_dt) {
35+
if (expiry_dt && !Number.isNaN(Date.parse(expiry_dt))) {
3636
const expiry = new Date(expiry_dt);
3737
const currentDate = new Date();
3838
currentDate.setHours(0, 0, 0, 0);

0 commit comments

Comments
 (0)