fix (client): unable to open about-firefish if reaction store is empty
This commit is contained in:
parent
df13c84b53
commit
860bda8921
1 changed files with 5 additions and 2 deletions
|
@ -92,7 +92,7 @@ import FormSection from "@/components/form/section.vue";
|
|||
import MkButton from "@/components/MkButton.vue";
|
||||
import { physics } from "@/scripts/physics";
|
||||
import { i18n } from "@/i18n";
|
||||
import { defaultStore } from "@/store";
|
||||
import { defaultStore, defaultReactions } from "@/store";
|
||||
import * as os from "@/os";
|
||||
import { definePageMetadata } from "@/scripts/page-metadata";
|
||||
import icon from "@/scripts/icon";
|
||||
|
@ -103,7 +103,10 @@ const easterEggEngine = ref(null);
|
|||
const containerEl = ref<HTMLElement>();
|
||||
|
||||
function iconLoaded() {
|
||||
const emojis = defaultStore.state.reactions;
|
||||
const emojis =
|
||||
defaultStore.state.reactions.length > 0
|
||||
? defaultStore.state.reactions
|
||||
: defaultReactions;
|
||||
const containerWidth = containerEl.value?.offsetWidth;
|
||||
for (let i = 0; i < 32; i++) {
|
||||
easterEggEmojis.value.push({
|
||||
|
|
Loading…
Reference in a new issue