Skip to content

Commit

Permalink
feat: not show notice for founder membership
Browse files Browse the repository at this point in the history
  • Loading branch information
cuixiaorui committed Jul 20, 2024
1 parent 88101b5 commit ebb2ba8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion apps/client/components/FoundingMemberNotice.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@
<script setup lang="ts">
import { onMounted, ref } from "vue";
const showNotice = ref(true);
import { useUserStore } from "~/store/user";
const showNotice = ref(false);
const userStore = useUserStore();
onMounted(() => {
showNotice.value = shouldShowNotice();
Expand All @@ -48,6 +51,8 @@ function setNoticeDismissed(): void {
}
function shouldShowNotice(): boolean {
if (userStore.isFounderMembership()) return false;
const dismissedTime = localStorage.getItem("noticeDismissed");
if (!dismissedTime) return true;
Expand Down

0 comments on commit ebb2ba8

Please sign in to comment.