mirror of
https://gitea.tendokyu.moe/ppc/amnet.git
synced 2026-09-27 09:23:03 +03:00
fix server add modal deep link
This commit is contained in:
@@ -89,11 +89,11 @@ export default function ServerAddModal({route, navigation}) {
|
||||
}
|
||||
|
||||
function handleDeepLink(realm, navigation, route, setAddress: (address: string) => void) {
|
||||
if (!route.params?.serverAddress) {
|
||||
if (!route.params?.address) {
|
||||
return;
|
||||
}
|
||||
|
||||
const serverUrl = decodeURIComponent(route.params.serverAddress);
|
||||
const serverUrl = decodeURIComponent(route.params.address);
|
||||
const item = realm.objects(AMServer).filtered("serverAddress = $0", serverUrl);
|
||||
|
||||
if (item.length) {
|
||||
|
||||
Reference in New Issue
Block a user