Fix async errors

This commit is contained in:
derek.holloway
2026-03-11 14:34:18 -07:00
parent 965ab8f362
commit aab26ea261
+5 -5
View File
@@ -63,7 +63,7 @@
<div class="signalBlock"> <div class="signalBlock">
<p style="text-align: center; font-weight: bold;">@cur.Symbol</p> <p style="text-align: center; font-weight: bold;">@cur.Symbol</p>
<p>AI Predicted Score: @cur.Score</p> <p>AI Predicted Score: @cur.Score</p>
<button @onclick="async () => {await removeStock(cur);}">Remove</button> <button @onclick="() => {removeStock(cur);}">Remove</button>
</div> </div>
} }
</div> </div>
@@ -102,7 +102,7 @@
string userName = ""; string userName = "";
string passWord = ""; string passWord = "";
string loginError = ""; string loginError = "";
async Task LoginSession(){ void LoginSession(){
string dbPrefix = $"[{userName.ToLower()}]:"; string dbPrefix = $"[{userName.ToLower()}]:";
// Check if user already exists // Check if user already exists
@@ -130,7 +130,7 @@
}; };
} }
async Task registerSession(){ void registerSession(){
string dbPrefix = $"[{userName.ToLower()}]:"; string dbPrefix = $"[{userName.ToLower()}]:";
// Check if user already exists // Check if user already exists
@@ -161,7 +161,7 @@
string addStockSymbol = ""; string addStockSymbol = "";
async Task addStock(){ void addStock(){
// Make sure a session exists // Make sure a session exists
if (Session == null){ if (Session == null){
@@ -181,7 +181,7 @@
async Task removeStock(Stock stock){ void removeStock(Stock stock){
// Make sure a session exists // Make sure a session exists
if (Session == null){ if (Session == null){