Skip to content

Commit f25a3d3

Browse files
committed
Fixed #644
1 parent d8020fb commit f25a3d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/src/utils/Date.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const deriveExpirationDate = role => {
1414
//When the role is serialized from the Server, then the defaultExpiryDate in epoch / 1000, else a genuine Date
1515
return role.defaultExpiryDate.getTime ? role.defaultExpiryDate : new Date(role.defaultExpiryDate * 1000);
1616
}
17-
return futureDate(role.defaultExpiryDays);
17+
return futureDate(role.defaultExpiryDays || 365);
1818
}
1919

2020
const formatOptions = {month: "short", day: "numeric", year: "numeric"};

0 commit comments

Comments
 (0)