Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryanidk committed Feb 29, 2024
1 parent d3b377b commit f7dc340
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/screens/scan.dart
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class _ScanResultsPageState extends State<ScanResultsPage> {
result = scanData;
String? resultData = result!.code;
Map? resultDataMap = jsonDecode(resultData!);
bool? isGame = resultDataMap!['isGame'];
bool? isGame = resultDataMap!['isGame'] == "y" ? true : false;
resultDataMap.remove("isGame");
sendData(resultDataMap, isGame);
});
Expand Down
2 changes: 1 addition & 1 deletion lib/screens/send_data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ class _SendDataState extends State<SendData> {
onPressed: () {
setState(() {
Map tempData = widget.data;
tempData['isGame'] = widget.isGame;
tempData['isGame'] = widget.isGame ? "y" : "n";
dataString = jsonEncode(tempData);
showQR = true;
});
Expand Down

0 comments on commit f7dc340

Please sign in to comment.