only print word when explicitly in debug mode

This commit is contained in:
julian 2023-01-11 22:47:47 -06:00
parent 12a5eff178
commit f5f53a163a

View file

@ -1,6 +1,7 @@
import 'dart:async';
import 'dart:math';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:stackwallet/notifications/show_flush_bar.dart';
@ -160,8 +161,9 @@ class _VerifyRecoveryPhraseViewState
result.insert(random.nextInt(wordsToShow), chosenWord);
//todo: this prints sensitive info
debugPrint("Mnemonic game correct word: $chosenWord");
if (kDebugMode) {
print("Mnemonic game correct word: $chosenWord");
}
return Tuple2(result, chosenWord);
}