From 1c6a2a9d7ea5e44685cfb8689fd6edf05d23c793 Mon Sep 17 00:00:00 2001 From: Myzel394 <50424412+Myzel394@users.noreply.github.com> Date: Thu, 28 Sep 2023 09:48:54 +0200 Subject: [PATCH] fix: Fix out of range --- lib/widgets/RelaySelectSheet.dart | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/widgets/RelaySelectSheet.dart b/lib/widgets/RelaySelectSheet.dart index 765db04..55488fd 100644 --- a/lib/widgets/RelaySelectSheet.dart +++ b/lib/widgets/RelaySelectSheet.dart @@ -5,17 +5,13 @@ import 'package:flutter/material.dart'; import 'package:flutter_gen/gen_l10n/app_localizations.dart'; import 'package:flutter_logs/flutter_logs.dart'; import 'package:flutter_platform_widgets/flutter_platform_widgets.dart'; -import 'package:latlong2/latlong.dart'; import 'package:locus/api/get-relays-meta.dart'; import 'package:locus/constants/spacing.dart'; import 'package:locus/constants/values.dart'; -import 'package:locus/services/location_point_service.dart'; import 'package:locus/utils/load_status.dart'; -import 'package:locus/utils/nostr_fetcher/NostrSocket.dart'; import 'package:locus/utils/theme.dart'; import 'package:locus/widgets/BottomSheetFilterBuilder.dart'; import 'package:locus/widgets/ModalSheet.dart'; -import 'package:nostr/nostr.dart'; import '../api/nostr-relays.dart'; import '../utils/cache.dart'; @@ -338,7 +334,7 @@ class _RelaySelectSheetState extends State { ); } - final index = rawIndex - 1; + final index = rawIndex - 2; final relay = allRelays[index]; final meta = relayMeta[relay];