File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
src/apps/wallet/src/home/tabs/winnings Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,12 @@ const ListView: FC<ListViewProps> = (props: ListViewProps) => {
93
93
const diffMinutes = diffMs / ( 1000 * 60 )
94
94
const hours = Math . floor ( diffHours )
95
95
const minutes = Math . round ( diffMinutes - hours * 60 )
96
- formattedReleaseDate = `In ${ hours } hours ${ minutes } minutes`
96
+ formattedReleaseDate = `${ minutes } minute${ minutes !== 1 ? 's' : '' } `
97
+ if ( hours > 0 ) {
98
+ formattedReleaseDate = `In ${ hours } hour${ hours !== 1 ? 's' : '' } ${ formattedReleaseDate } `
99
+ } else if ( minutes > 0 ) {
100
+ formattedReleaseDate = `In ${ minutes } minute${ minutes !== 1 ? 's' : '' } `
101
+ }
97
102
} else {
98
103
formattedReleaseDate = formatIOSDateString ( payment . releaseDate )
99
104
}
You can’t perform that action at this time.
0 commit comments