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">
<p style="text-align: center; font-weight: bold;">@cur.Symbol</p>
<p>AI Predicted Score: @cur.Score</p>
<button @onclick="async () => {await removeStock(cur);}">Remove</button>
<button @onclick="() => {removeStock(cur);}">Remove</button>
</div>
}
</div>
@@ -102,7 +102,7 @@
string userName = "";
string passWord = "";
string loginError = "";
async Task LoginSession(){
void LoginSession(){
string dbPrefix = $"[{userName.ToLower()}]:";
// Check if user already exists
@@ -130,7 +130,7 @@
};
}
async Task registerSession(){
void registerSession(){
string dbPrefix = $"[{userName.ToLower()}]:";
// Check if user already exists
@@ -161,7 +161,7 @@
string addStockSymbol = "";
async Task addStock(){
void addStock(){
// Make sure a session exists
if (Session == null){
@@ -181,7 +181,7 @@
async Task removeStock(Stock stock){
void removeStock(Stock stock){
// Make sure a session exists
if (Session == null){