@@ -303,7 +303,7 @@ const checkProviderStatus = async (url: string | null, providerName: string): Pr
303303} ;
304304
305305export default function DebugTab ( ) {
306- const { providers, latestBranch } = useSettings ( ) ;
306+ const { providers, isLatestBranch } = useSettings ( ) ;
307307 const [ activeProviders , setActiveProviders ] = useState < ProviderStatus [ ] > ( [ ] ) ;
308308 const [ updateMessage , setUpdateMessage ] = useState < string > ( '' ) ;
309309 const [ systemInfo ] = useState < SystemInfo > ( getSystemInfo ( ) ) ;
@@ -363,7 +363,7 @@ export default function DebugTab() {
363363 setIsCheckingUpdate ( true ) ;
364364 setUpdateMessage ( 'Checking for updates...' ) ;
365365
366- const branchToCheck = latestBranch ? 'main' : 'stable' ;
366+ const branchToCheck = isLatestBranch ? 'main' : 'stable' ;
367367 console . log ( `[Debug] Checking for updates against ${ branchToCheck } branch` ) ;
368368
369369 const localCommitResponse = await fetch ( GITHUB_URLS . commitJson ( branchToCheck ) ) ;
@@ -391,7 +391,7 @@ export default function DebugTab() {
391391 } finally {
392392 setIsCheckingUpdate ( false ) ;
393393 }
394- } , [ isCheckingUpdate , latestBranch ] ) ;
394+ } , [ isCheckingUpdate , isLatestBranch ] ) ;
395395
396396 const handleCopyToClipboard = useCallback ( ( ) => {
397397 const debugInfo = {
@@ -408,15 +408,15 @@ export default function DebugTab() {
408408 } ) ) ,
409409 Version : {
410410 hash : versionHash . slice ( 0 , 7 ) ,
411- branch : latestBranch ? 'main' : 'stable' ,
411+ branch : isLatestBranch ? 'main' : 'stable' ,
412412 } ,
413413 Timestamp : new Date ( ) . toISOString ( ) ,
414414 } ;
415415
416416 navigator . clipboard . writeText ( JSON . stringify ( debugInfo , null , 2 ) ) . then ( ( ) => {
417417 toast . success ( 'Debug information copied to clipboard!' ) ;
418418 } ) ;
419- } , [ activeProviders , systemInfo , latestBranch ] ) ;
419+ } , [ activeProviders , systemInfo , isLatestBranch ] ) ;
420420
421421 return (
422422 < div className = "p-4 space-y-6" >
@@ -523,7 +523,7 @@ export default function DebugTab() {
523523 < p className = "text-sm font-medium text-bolt-elements-textPrimary font-mono" >
524524 { versionHash . slice ( 0 , 7 ) }
525525 < span className = "ml-2 text-xs text-bolt-elements-textSecondary" >
526- (v{ versionTag || '0.0.1' } ) - { latestBranch ? 'nightly' : 'stable' }
526+ (v{ versionTag || '0.0.1' } ) - { isLatestBranch ? 'nightly' : 'stable' }
527527 </ span >
528528 </ p >
529529 </ div >
0 commit comments