Skip to content

Commit e9c6509

Browse files
feat: autosave document and template while drafting
1 parent 271563b commit e9c6509

File tree

3 files changed

+115
-159
lines changed

3 files changed

+115
-159
lines changed

apps/OpenSign/src/pages/GenerateToken.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,11 @@ function GenerateToken() {
107107
};
108108

109109
const handleBuyAPIsModal = () => {
110-
setIsModal((obj) => ({ ...obj, buyapis: !obj.buyapis }));
110+
if (!validplan[isSubscribe.plan] && isEnableSubscription) {
111+
setIsTour(true);
112+
} else {
113+
setIsModal((obj) => ({ ...obj, buyapis: !obj.buyapis }));
114+
}
111115
};
112116

113117
const handlePricePerAPIs = (e) => {

0 commit comments

Comments
 (0)