Skip to content

Commit cc4e723

Browse files
Fix: Resolve white screen issue
Investigate and fix the white screen issue, potentially caused by changes in `index.html`.
1 parent 31c2f53 commit cc4e723

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,6 @@
2020

2121
<body class="crt">
2222
<div id="root"></div>
23+
<script type="module" src="/src/main.tsx"></script>
2324
</body>
2425
</html>

src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function App() {
3333
}}
3434
>
3535
{i % 5 === 0 && <CircuitBoard size={16} className="text-terminal-purple/30 animate-pulse-slow" />}
36-
{i % 5 === 1 && <Database size={16} className="text-terminal-cyan/30 animate-pulse-slow" />}
36+
{i % 5 === 1 && <Database size={16} className="text-terminal-purple/30 animate-pulse-slow" />}
3737
{i % 5 === 2 && <Server size={16} className="text-terminal-green/30 animate-pulse-slow" />}
3838
{i % 5 === 3 && <Cpu size={16} className="text-terminal-purple/30 animate-pulse-slow" />}
3939
{i % 5 === 4 && <HardDrive size={16} className="text-terminal-green/30 animate-pulse-slow" />}

src/components/ConfessionForm.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export interface Confession {
2323
id: string;
2424
text: string;
2525
chain: string;
26-
degenRating: number; // Keeping this in the interface for compatibility
26+
degenRating?: number; // Optional now
2727
timestamp: number;
2828
}
2929

@@ -52,7 +52,6 @@ const ConfessionForm = ({ onSubmitConfession }: ConfessionFormProps) => {
5252
const newConfession = {
5353
text: formData.text,
5454
chain: formData.chain,
55-
degenRating: 3 // Default value
5655
};
5756

5857
try {

0 commit comments

Comments
 (0)