From 56882043b6124fb1f51f8e8dbfab3970b0d9a57a Mon Sep 17 00:00:00 2001 From: UC-HOBA Date: Thu, 24 Feb 2022 15:22:08 +0800 Subject: [PATCH] fix people count error --- lib/main.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/main.dart b/lib/main.dart index 273c75c..a86313f 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -63,7 +63,7 @@ class AnalyzeViewState extends State List recipents = ['1922']; msg = msg.substring(prefix.length); if (peopleCount > 1) { - msg += ' +${peopleCount.toInt()}'; + msg += ' +${peopleCount.toInt() - 1}'; } _sendSMS(msg, recipents); }