fixed finished polls causing errors, made poll list dense

This commit is contained in:
2026-02-01 15:07:48 +01:00
parent 567184bcf9
commit 174e6ac0b7
3 changed files with 8 additions and 12 deletions

View File

@@ -28,7 +28,7 @@ class GetPollStateResponseObject {
int maxVotes;
List<int> votedSelf;
int? numVoters;
List<String>? details;
List<dynamic>? details;
GetPollStateResponseObject(
this.id,

View File

@@ -40,7 +40,7 @@ GetPollStateResponseObject _$GetPollStateResponseObjectFromJson(
(json['maxVotes'] as num).toInt(),
(json['votedSelf'] as List<dynamic>).map((e) => (e as num).toInt()).toList(),
(json['numVoters'] as num?)?.toInt(),
(json['details'] as List<dynamic>?)?.map((e) => e as String).toList(),
json['details'] as List<dynamic>?,
);
Map<String, dynamic> _$GetPollStateResponseObjectToJson(