File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,6 +31,10 @@ export const SyncStatus = ({
3131 return < Text variant = "xSmall" > { t ( 'footer.fail-to-fetch-tip-block-number' ) } </ Text >
3232 }
3333
34+ if ( + syncedBlockNumber < 0 ) {
35+ return < Text variant = "xSmall" > { t ( 'footer.sync-not-start' ) } </ Text >
36+ }
37+
3438 const percentage = + syncedBlockNumber / + tipBlockNumber
3539
3640 return + syncedBlockNumber + bufferBlockNumber < + tipBlockNumber ? (
Original file line number Diff line number Diff line change 228228 "save" : " Save image"
229229 },
230230 "footer" : {
231- "fail-to-fetch-tip-block-number" : " Cannot fetch tip block number"
231+ "fail-to-fetch-tip-block-number" : " Cannot fetch tip block number" ,
232+ "sync-not-start" : " Synchronization not started yet"
232233 },
233234 "common" : {
234235 "or" : " or" ,
Original file line number Diff line number Diff line change 228228 "save" : " 保存图片"
229229 },
230230 "footer" : {
231- "fail-to-fetch-tip-block-number" : " 无法获取最新高度"
231+ "fail-to-fetch-tip-block-number" : " 无法获取最新高度" ,
232+ "sync-not-start" : " 同步尚未开始"
232233 },
233234 "common" : {
234235 "or" : " 或" ,
You can’t perform that action at this time.
0 commit comments