Skip to content

Commit

Permalink
Update ChatManager.cs
Browse files Browse the repository at this point in the history
fixed count from API requests
  • Loading branch information
nor0x authored Sep 29, 2024
1 parent 4092356 commit 17b8c2d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion WahlGPT.Web/ChatManager.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System.Text.Json;
using System.Text.Json;
using System.Text.RegularExpressions;
using Microsoft.AspNetCore.Components;
using Microsoft.JSInterop;
Expand All @@ -23,6 +23,7 @@ public ChatManager(HttpClient client, IJSRuntime jsRuntime)

public async Task<int> GetCount()
{
return 26237;
var lastDate = await _jsRuntime.InvokeAsync<string>("localStorage.getItem", "countDate");

Check warning on line 27 in WahlGPT.Web/ChatManager.cs

View workflow job for this annotation

GitHub Actions / deploy-to-github-pages

Unreachable code detected
if (!string.IsNullOrWhiteSpace(lastDate))
{
Expand Down

0 comments on commit 17b8c2d

Please sign in to comment.