mirror of
https://github.com/aykhans/slash-e.git
synced 2025-04-18 21:19:44 +00:00
chore: update options initial state check
This commit is contained in:
parent
93ed3c81ff
commit
3e5fa5573e
@ -21,6 +21,7 @@ const IndexOptions = () => {
|
|||||||
accessToken,
|
accessToken,
|
||||||
});
|
});
|
||||||
const [shortcuts] = useStorage<Shortcut[]>("shortcuts", []);
|
const [shortcuts] = useStorage<Shortcut[]>("shortcuts", []);
|
||||||
|
const isInitialized = domain && accessToken;
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
setSettingState({
|
setSettingState({
|
||||||
@ -109,7 +110,7 @@ const IndexOptions = () => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{shortcuts.length > 0 && (
|
{isInitialized && shortcuts.length > 0 && (
|
||||||
<>
|
<>
|
||||||
<Divider className="!my-6" />
|
<Divider className="!my-6" />
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user