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) => {
9393 const diffMinutes = diffMs / ( 1000 * 60 )
9494 const hours = Math . floor ( diffHours )
9595 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+ }
97102 } else {
98103 formattedReleaseDate = formatIOSDateString ( payment . releaseDate )
99104 }
You can’t perform that action at this time.
0 commit comments