1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00
This commit is contained in:
xmflsct
2023-03-12 18:49:06 +01:00
parent 173d4248d8
commit 1df73b070a
2 changed files with 5 additions and 3 deletions

View File

@ -7,7 +7,9 @@ import { useEffect } from 'react'
// /compose OR /compose/@username@example.com
export const useLinking = () => {
const parseLink = async (link: string) => {
const parseLink = async (link: string | null) => {
if (!link) return
const parsed = Linking.parse(link)
switch (parsed.scheme) {