We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a07be3b + 181d6bf commit c2dccf1Copy full SHA for c2dccf1
apps/OpenSign/src/components/Header.js
@@ -48,11 +48,13 @@ const Header = ({ showSidebar }) => {
48
}
49
setIsTeam(subscribe);
50
setIsSubscribe(subscribe.isValid);
51
- const extUser =
52
- localStorage.getItem("Extand_Class") &&
53
- JSON.parse(localStorage.getItem("Extand_Class"))?.[0];
54
- const MonthlyFreeEmails = extUser?.MonthlyFreeEmails || 0;
55
- setEmailUsed(MonthlyFreeEmails);
+ try {
+ const extUser = await Parse.Cloud.run("getUserDetails");
+ const MonthlyFreeEmails = extUser?.get("MonthlyFreeEmails") || 0;
+ setEmailUsed(MonthlyFreeEmails);
+ } catch (err) {
56
+ console.log("err in while fetching monthlyfreeEmails", err);
57
+ }
58
59
60
0 commit comments