Skip to content

Commit

Permalink
fix: Fix out of range
Browse files Browse the repository at this point in the history
  • Loading branch information
Myzel394 committed Sep 28, 2023
1 parent b521edb commit 1c6a2a9
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/widgets/RelaySelectSheet.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -338,7 +334,7 @@ class _RelaySelectSheetState extends State<RelaySelectSheet> {
);
}

final index = rawIndex - 1;
final index = rawIndex - 2;
final relay = allRelays[index];
final meta = relayMeta[relay];

Expand Down

0 comments on commit 1c6a2a9

Please sign in to comment.