Skip to content

Commit

Permalink
feat: 增加空值判断
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangnuans committed Nov 11, 2024
1 parent 2d9568f commit 4097fb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useIsConnectionRestored.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export function useIsConnectionRestored(): Ref<boolean> {
const { tonConnectUI } = useTonConnectUI();

onMounted(() => {
if (tonConnectUI) {
if (tonConnectUI?.closeModal) {
tonConnectUI.connectionRestored.then(() => {
restored.value = true;
});
Expand Down

0 comments on commit 4097fb8

Please sign in to comment.