Skip to content
Snippets Groups Projects
Commit 4e69b945 authored by poka's avatar poka
Browse files

fix: can certify after renewable spend time

parent eeb7b032
No related branches found
No related tags found
No related merge requests found
Pipeline #16005 failed
...@@ -144,7 +144,9 @@ class WalletViewScreen extends StatelessWidget { ...@@ -144,7 +144,9 @@ class WalletViewScreen extends StatelessWidget {
final int _seconds = _durationSeconds.inSeconds; final int _seconds = _durationSeconds.inSeconds;
final int _minutes = _durationSeconds.inMinutes; final int _minutes = _durationSeconds.inMinutes;
if (_seconds <= 60) { if (_seconds <= 0) {
_duration = '0 secondes';
} else if (_seconds <= 60) {
_duration = '$_seconds secondes'; _duration = '$_seconds secondes';
} else if (_seconds <= 3600) { } else if (_seconds <= 3600) {
_duration = '$_minutes minutes'; _duration = '$_minutes minutes';
...@@ -167,7 +169,8 @@ class WalletViewScreen extends StatelessWidget { ...@@ -167,7 +169,8 @@ class WalletViewScreen extends StatelessWidget {
return Visibility( return Visibility(
visible: (snapshot.data != {}), visible: (snapshot.data != {}),
child: Column(children: <Widget>[ child: Column(children: <Widget>[
if (snapshot.data!['canCert'] != null) if (snapshot.data!['canCert'] != null ||
_duration == '0 secondes')
Column(children: <Widget>[ Column(children: <Widget>[
SizedBox( SizedBox(
height: buttonSize, height: buttonSize,
...@@ -268,7 +271,8 @@ class WalletViewScreen extends StatelessWidget { ...@@ -268,7 +271,8 @@ class WalletViewScreen extends StatelessWidget {
color: Colors.grey[600]), color: Colors.grey[600]),
), ),
]), ]),
if (snapshot.data!['certRenewable'] != null) if (snapshot.data!['certRenewable'] != null &&
_duration != '0 secondes')
Column(children: <Widget>[ Column(children: <Widget>[
SizedBox( SizedBox(
height: buttonSize, height: buttonSize,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment