Skip to content

Commit

Permalink
friendly sync error message (#278)
Browse files Browse the repository at this point in the history
  • Loading branch information
TalDerei authored Jan 28, 2025
1 parent 5398014 commit 89adf40
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/ui/components/ui/block-sync-status/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const CondensedBlockSyncStatus = ({
error?: unknown;
}) => {
if (error) {
return <BlockSyncErrorState error={error} />;
return <BlockSyncErrorState />;
}
if (!latestKnownBlockHeight || !fullSyncHeight) {
return <AwaitingSyncState genesisSyncing={!fullSyncHeight} />;
Expand All @@ -41,7 +41,7 @@ export const CondensedBlockSyncStatus = ({
);
};

const BlockSyncErrorState = ({ error }: { error: unknown }) => {
const BlockSyncErrorState = () => {
return (
<motion.div
className='flex w-full select-none flex-col'
Expand All @@ -51,7 +51,7 @@ const BlockSyncErrorState = ({ error }: { error: unknown }) => {
<Progress status='error' value={100} shape='squared' />
<div className='absolute flex w-full justify-between px-2'>
<div className='mt-[-5.5px] font-mono text-[10px] text-red-300'>
Block sync error: {String(error)}
Block sync error. Ensure your internet connection is stable
</div>
</div>
</motion.div>
Expand Down

0 comments on commit 89adf40

Please sign in to comment.