fix: no subs error

This commit is contained in:
2023-11-06 14:02:40 +00:00
parent 6ca8f8f339
commit 9d91cc6ec9
2 changed files with 2 additions and 2 deletions

View File

@ -83,7 +83,7 @@ export function NoteContextMenu({ ev, ...props }: NosteContextMenuProps) {
useEffect(() => {
const sub = getCurrentSubscription(login.subscriptions);
if (sub.type === SubscriptionType.Premium) {
if (sub?.type === SubscriptionType.Premium) {
translate();
}
}, []);