fix for resend, cooldown and a few small fixes
This commit is contained in:
8
frontend/pweb/lib/utils/cooldown_format.dart
Normal file
8
frontend/pweb/lib/utils/cooldown_format.dart
Normal file
@@ -0,0 +1,8 @@
|
||||
String formatCooldownSeconds(int seconds) {
|
||||
final minutes = seconds ~/ 60;
|
||||
final remainingSeconds = seconds % 60;
|
||||
if (minutes > 0) {
|
||||
return '$minutes:${remainingSeconds.toString().padLeft(2, '0')}';
|
||||
}
|
||||
return remainingSeconds.toString();
|
||||
}
|
||||
Reference in New Issue
Block a user