mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-23 19:05:51 +00:00
only print word when explicitly in debug mode
This commit is contained in:
parent
12a5eff178
commit
f5f53a163a
1 changed files with 4 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
import 'dart:math';
|
import 'dart:math';
|
||||||
|
|
||||||
|
import 'package:flutter/foundation.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||||
import 'package:stackwallet/notifications/show_flush_bar.dart';
|
import 'package:stackwallet/notifications/show_flush_bar.dart';
|
||||||
|
@ -160,8 +161,9 @@ class _VerifyRecoveryPhraseViewState
|
||||||
|
|
||||||
result.insert(random.nextInt(wordsToShow), chosenWord);
|
result.insert(random.nextInt(wordsToShow), chosenWord);
|
||||||
|
|
||||||
//todo: this prints sensitive info
|
if (kDebugMode) {
|
||||||
debugPrint("Mnemonic game correct word: $chosenWord");
|
print("Mnemonic game correct word: $chosenWord");
|
||||||
|
}
|
||||||
|
|
||||||
return Tuple2(result, chosenWord);
|
return Tuple2(result, chosenWord);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue